github-security-report-action icon indicating copy to clipboard operation
github-security-report-action copied to clipboard

Partial implementation of template parameter & report

Open jorge-abarca opened this issue 4 years ago • 1 comments

This PR is meant to help with a partial implementation of handling the template parameter based on the work done by GeekMasher.

This includes a pretty basic report template that breaks open issues by severity. It also includes an action for updating the dist folder, as well as some PRs suggested by Dependabot.

jorge-abarca avatar Apr 20 '22 00:04 jorge-abarca

I made additional changes to the PR. Let me list what they are.

Bug Fixes

This PR addresses the following issues:

  • CWE data is not populated, as per issue #7.

New Functionality

This PR also adds the following functionality:

  • Severity has been expanded to include critical, high and low, as presented by GitHub's UI.
  • The summary report shows the new severity classifications with their number of incidences.
  • An alerts component has been created to be available for reports.
  • The report template has been modified to include all open alerts grouped by severity.
  • An aggregated_report template has been included to create less verbose reports showing the number of instances a rule was matched.

Development Experience Improvements

Additionally, this PR has the following proposed development experience improvements:

  • The "Build and Test" action uploads a "results" artifact for debugging purposes.
  • Mocking is introduced to allow tests to work without the need to have access to any repositories.

Mocking is achieved by leveraging a mocking directory inside samples. JSON files representing the mocked responses for the paginate and graphql methods are used by testUtils.js to provide this functionality.

jorge-abarca avatar May 02 '22 00:05 jorge-abarca