sett-and-hive / sarif-to-comment-action

A GitHub action for @security-alert/sarif-to-comment
MIT License
7 stars 5 forks source link

feat(sarif-to-comment): add an option to fail on specific severity #321

Closed emaincourt closed 1 month ago

emaincourt commented 4 months ago

Pull Request

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

The action currently does not support --failon flag.

Issue URL: #174

What is the new behavior?

A failon input parameter has been added as a comma separated list of levels.

Does this introduce a breaking change?

Other information

N/A

Summary by Sourcery

Introduced a new failon input parameter to allow the action to fail based on specified severity levels. Updated documentation and added tests to support this new feature.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

This pull request introduces a new feature that adds an option to fail on specific severity levels in the SARIF to comment action. The changes include modifications to the test script, action configuration, and entrypoint script to support the new failon parameter.

File-Level Changes

Files Changes
test/test.sh
action.yml
entrypoint.sh
Introduced support for the failon parameter to allow the action to fail based on specific severity levels.