-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix severity check logic and make it configurable
Fixes #89 Update the Reviewer app to make severity list configurable and handle security severity level. * Add `--ghas-severities` argument to `ghasreview/setup.py` to allow configuration through environment variables or arguments. * Modify `ghasreview/app.py` to check both `alert.severity` and `alert.payload.rule.security_severity_level` against the configurable severity list. * Add logic to handle the case where no severity values are provided, reopening all findings. * Log the configured severities and the results of severity checks. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/advanced-security/ghas-reviewer-app/issues/89?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
8877538
commit 53a56fa
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters