Skip to content

ci(security): consolidate container-image scanning to single source of truth - #605

Merged
c-vigo merged 3 commits into
devfrom
chore/604-cleanup-scanning-alerts
Jun 21, 2026
Merged

c-vigo merged 3 commits into
devfrom
chore/604-cleanup-scanning-alerts

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Description

Consolidates container-image vulnerability scanning to a single source of truth and cleans up the resulting orphaned/stale code-scanning alerts. Closes #604.

The Security and quality tab had 564 open alerts, but ~328 were stale, orphaned, or duplicated rather than genuine exposure (see #604 for the full evaluation). Root cause: two overlapping Trivy scans (PR CI container-image + nightly container-image-latest) plus a defunct container-image-scheduled category, where the PR-CI alerts could not reliably auto-close.

Type of Change

  • ci -- CI/CD pipeline changes

Changes Made

  • ci.yml: PR CI Trivy is now a blocking gate only (fail on fixable HIGH/CRITICAL) plus non-blocking job-log reports. Removed the Generate SARIF report + Upload SARIF to GitHub Security steps and the now-unneeded security-events: write permission. Added a comment documenting the SSoT.
  • security-scan.yml: header comment updated to state that the nightly :latest scan (container-image-latest) is the single authoritative scan for the Security tab.
  • Alert cleanup (GitHub state, reversible — dismissed, not deleted):
    • 10 orphaned container-image-scheduled alerts (no producing workflow since 2026-03-30).
    • 313 container-image alerts (category no longer produced after this change).
    • 5 Scorecard supply-chain/* findings, each with documented rationale.
  • Result: open alerts 564 → 237, all from the single authoritative container-image-latest nightly scan.

Changelog Entry

Security

  • Consolidate container-image vulnerability scanning to a single source of truth (#604)
    • PR CI Trivy is now a blocking gate only (fail on fixable HIGH/CRITICAL) and no longer uploads SARIF to the Security tab
    • The nightly scheduled scan of the published :latest image (container-image-latest) is now the single authoritative scan for the GitHub Security tab, ending duplicate/stale alert categories
    • Dismissed orphaned container-image-scheduled and stale container-image code-scanning alerts that could no longer auto-close

Testing

  • pre-commit run --files on changed workflows — all hooks pass (yamllint, action-pin check, manifest sync)
  • YAML parses; workflow structure validated
  • Manual verification: after dismissals, gh api .../code-scanning/alerts?state=open returns only container-image-latest (237)

Manual Testing Details

Workflow-only change (no testable code logic added), so no unit tests apply. The PR-CI Trivy gate behaviour is unchanged — only the SARIF upload (Security-tab publishing) was removed.

Checklist

  • Self-review performed
  • Commented the workflow change documenting the SSoT
  • Updated CHANGELOG.md under [Unreleased]
  • No new warnings/errors
  • Added tests — N/A (workflow/YAML change, non-testable)

PR CI Trivy becomes a blocking gate only and no longer uploads SARIF to
the GitHub Security tab; the nightly scheduled scan of the published
:latest image (category container-image-latest) is now the single
authoritative scan. Removes the duplicate container-image category that
could not reliably auto-close.

Refs: #604
@c-vigo c-vigo added chore General tasks (e.g. update dependencies, contact a manufacturer, read a paper) area:ci CI/CD, GitHub Actions, workflows security Vulnerability fixes or security improvements labels Jun 21, 2026
@c-vigo
c-vigo enabled auto-merge June 21, 2026 20:11
typstyle is installed from latest release; upstream shipped 0.15.0
(2026-06-20), so the hardcoded 0.14. assertion now fails. Update the
expected minor version to unblock CI.

Refs: #604
@c-vigo
c-vigo merged commit 2448dd7 into dev Jun 21, 2026
13 checks passed
@c-vigo
c-vigo deleted the chore/604-cleanup-scanning-alerts branch June 21, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI/CD, GitHub Actions, workflows chore General tasks (e.g. update dependencies, contact a manufacturer, read a paper) security Vulnerability fixes or security improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant