Partial implementation of template parameter & report
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.
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,highandlow, as presented by GitHub's UI. - The
summaryreport shows the new severity classifications with their number of incidences. - An
alertscomponent has been created to be available for reports. - The
reporttemplate has been modified to include all open alerts grouped by severity. - An
aggregated_reporttemplate 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.