Colorize severity and link files/rules in the PR summary #11

Merged
james merged 1 commit from feat/summary-links-and-colors into main 2026-09-05 03:01:53 +00:00
Owner

Severity gets a colored circle (no other color is available in a PR
comment): red/orange/yellow/green/white for
critical/high/medium/low/unknown, in both the counts table and the
details table.

Issue locations (File:Line) link to that exact line at the commit
that was scanned, not a branch -- so the link stays correct even
after the branch moves on. Path segments are percent-encoded
individually so '/' stays a separator. Vuln IDs link to their .URL
when the report provides one.

Verified against a real ojo-report.json from balam, through the
actual docker-cp scan path (not synthetic data) -- linked paths use
forward slashes as expected on the real Linux runner; only my earlier
Windows-native test data had backslashes.

Severity gets a colored circle (no other color is available in a PR comment): red/orange/yellow/green/white for critical/high/medium/low/unknown, in both the counts table and the details table. Issue locations (File:Line) link to that exact line at the commit that was scanned, not a branch -- so the link stays correct even after the branch moves on. Path segments are percent-encoded individually so '/' stays a separator. Vuln IDs link to their .URL when the report provides one. Verified against a real ojo-report.json from balam, through the actual docker-cp scan path (not synthetic data) -- linked paths use forward slashes as expected on the real Linux runner; only my earlier Windows-native test data had backslashes.
Colorize severity and link files/rules in the PR summary
All checks were successful
test / test (pull_request) Successful in 11s
aab2092551
Severity gets a colored circle (no other color is available in a PR
comment): red/orange/yellow/green/white for
critical/high/medium/low/unknown, in both the counts table and the
details table.

Issue locations (File:Line) link to that exact line at the commit
that was scanned, not a branch -- so the link stays correct even
after the branch moves on. Path segments are percent-encoded
individually so '/' stays a separator. Vuln IDs link to their .URL
when the report provides one.

Verified against a real ojo-report.json from balam, through the
actual docker-cp scan path (not synthetic data) -- linked paths use
forward slashes as expected on the real Linux runner; only my earlier
Windows-native test data had backslashes.
james merged commit 5aed42665e into main 2026-09-05 03:01:53 +00:00
james deleted branch feat/summary-links-and-colors 2026-09-05 03:01:55 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ColibriSec/ojo-forgejo!11
No description provided.