Repository navigation
fix(audit): report maximum SARIF descriptor severity - #916
Conversation
Python credential scans can produce a HIGH comment before a CRITICAL code finding for the same rule. Keeping the first descriptor score hides the later severity. Promote the shared descriptor while retaining each result's level and the first-seen rule index.
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Thanks for splitting this out and for the clear write-up. Merged in 22fdb28, so it will ship with the next release. |
Python credential scans can report a HIGH finding in a comment before a CRITICAL finding in code for the same rule. SARIF currently keeps the first finding's descriptor score, reporting 7.0 instead of 9.0.
Use the highest observed severity for each rule descriptor and its default level. Keep each result's level and the existing rule indices. This is the SARIF follow-up separated from #753; rule loading was handled in #882.
Type
Linked Issue
Refs #753 (comment)
Verification
go test ./internal/audit -run "^TestToSARIF_" -count=1andmake checkpassed in the Linux devcontainer. Existing platform, permission and unavailable-shell skips remain unchanged.Checklist
make check)