Open links in a new tab, fix external URL, sort details by severity #12

Merged
james merged 1 commit from feat/link-improvements into main 2026-09-05 03:10:27 +00:00
Owner
- File/rule links use raw <a target="_blank" rel="noopener noreferrer"> instead of markdown syntax -- markdown link syntax has no way to set target. - New site-url input overrides the link base. GITHUB_SERVER_URL reflects whatever internal address the runner registered with (github.server_url == FORGEJO_INSTANCE_URL on a self-hosted runner), which readers of the comment can't necessarily reach -- there's no way to derive the public address from inside the job, so it has to be an explicit input when the two differ. - Details table sorted CRITICAL..UNKNOWN via a severity-rank prefix fed through sort -s -t$'\t', not just grouped by scanner/file order. Verified against the real balam ojo-report.json: all links resolve to the intended paths/lines, SITE_URL correctly overrides GITHUB_SERVER_URL, sort order is correct.
Open links in a new tab, fix external URL, sort details by severity
All checks were successful
test / test (pull_request) Successful in 1m11s
191d1c6dd9
- File/rule links use raw <a target="_blank" rel="noopener noreferrer">
  instead of markdown syntax -- markdown link syntax has no way to set
  target.
- New site-url input overrides the link base. GITHUB_SERVER_URL
  reflects whatever internal address the runner registered with
  (github.server_url == FORGEJO_INSTANCE_URL on a self-hosted runner),
  which readers of the comment can't necessarily reach -- there's no
  way to derive the public address from inside the job, so it has to
  be an explicit input when the two differ.
- Details table sorted CRITICAL..UNKNOWN via a severity-rank prefix
  fed through sort -s -t$'\t', not just grouped by scanner/file order.

Verified against the real balam ojo-report.json: all links resolve to
the intended paths/lines, SITE_URL correctly overrides
GITHUB_SERVER_URL, sort order is correct.
james merged commit 7e87740c6d into main 2026-09-05 03:10:27 +00:00
james deleted branch feat/link-improvements 2026-09-05 03:10:28 +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!12
No description provided.