Skip to content

ci(trivy): report dev image scans and stop prerelease uploads - #4971

Merged
SDAChess merged 3 commits into
mainfrom
ci/trivy-stable-alert-lanes/SDAChess
Nov 26, 2026
Merged

SDAChess merged 3 commits into
mainfrom
ci/trivy-stable-alert-lanes/SDAChess

Conversation

@SDAChess

@SDAChess SDAChess commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Report Trivy findings for the published :dev images on main, so alerts track the current dev build and close once fixed. Prereleases keep scanning as an informational check but stop uploading.

Related Issue

No issue; prerelease scans upload under per-SHA categories on tag refs, so their findings never close and never reach the main alert list.

Changes

  • Add a Scan Dev Images and Charts job to Release Dev after the :dev image and chart promotion. Floating quay.io/ai-openshell/*:dev images and charts/{openshell,openshell-workspace}:0.0.0-dev charts keep each category stable, and the existing config/Helm category rides along.
  • Run the prerelease Trivy scan with fail-on-findings: false and upload-sarif: false; findings stay in the job summary and report artifact.

After merge, the stale image-*-dev-* analyses on main from the old ghcr.io/nvidia scan will be deleted; trivy/config is left for the first dev scan to reconcile.

Release Notes

Testing

  • actionlint on the changed workflows.
  • Local trivy-scan.sh config against both published 0.0.0-dev charts.

Checklist

  • Follows Conventional Commits.
  • Commits are signed off (DCO).

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Compatibility review (advisory)

New or updated breaking changes; see the full report for all findings.

1. configuration — No explicit risk acceptance found

Trivy Scan previously published image SARIF with upload-sarif enabled alone; it now omits image analyses unless the new release-lane input is nonempty.

  • Impact: Existing manual scans and reusable callers, including Security Scan, silently lose image/platform Code Scanning results while JSON reports and summaries remain available.
  • Action: For v0.1.6, preserve image SARIF publication when release-lane is omitted and make suppression explicitly opt-in.
  • PR: ci(trivy): report dev image scans and stop prerelease uploads #4971
Review details
  • Execution: complete
  • Candidate: PR #4971 (0cbf3c260424d4a71e147dbceb510eb2aa9a74c4)
  • Baseline: e5adf6f484d6b7d3f3d21d5a864f95d3350194fd (e5adf6f484d6b7d3f3d21d5a864f95d3350194fd)
  • Reviewed: rust-sdk, python-sdk, go-sdk, typescript-sdk, api-behavior, cli, configuration, policy, helm, state

Advisory review; publication gates are unchanged.

Branch check run

@github-actions

Copy link
Copy Markdown

This pull request has had no activity for 14 days and is now marked stale.

@github-actions github-actions Bot added the state:stale Inactive item at risk of automatic closure. label Nov 11, 2026
@purp purp added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention. labels Nov 15, 2026
@github-actions github-actions Bot removed the state:stale Inactive item at risk of automatic closure. label Nov 15, 2026
@SDAChess
SDAChess force-pushed the ci/trivy-stable-alert-lanes/SDAChess branch from f371842 to be6288e Compare November 26, 2026 13:24
@SDAChess
SDAChess requested a review from a team as a code owner November 26, 2026 13:24
@SDAChess SDAChess changed the title fix(ci): track Trivy image alerts by stable release lane ci(trivy): scan dev images instead of prereleases Nov 26, 2026
alangou
alangou previously approved these changes Nov 26, 2026
Prerelease scans tagged each image analysis with a per-SHA category on a
tag ref, so findings never closed and nothing reached the main alert list.

Scan the published :dev images from Release Dev and report them on main.
Fixed image references keep each Code Scanning category stable, so every
scan replaces the previous one and fixed findings close. The configuration
and Helm chart scan rides along under its existing category.

Prereleases still run Trivy, but only as an informational check: findings
never fail qualification and results are no longer uploaded.

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
@SDAChess
SDAChess force-pushed the ci/trivy-stable-alert-lanes/SDAChess branch from be6288e to 29249e4 Compare November 26, 2026 13:29
@SDAChess SDAChess changed the title ci(trivy): scan dev images instead of prereleases ci(trivy): report dev image scans and stop prerelease uploads Nov 26, 2026
Scan the floating 0.0.0-dev gateway and workspace charts alongside the dev images, so packaged chart findings also track the current dev build on main.

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
@SDAChess
SDAChess enabled auto-merge November 26, 2026 13:36
@SDAChess
SDAChess disabled auto-merge November 26, 2026 13:36
@SDAChess
SDAChess merged commit daf45a5 into main Nov 26, 2026
87 of 88 checks passed
@SDAChess
SDAChess deleted the ci/trivy-stable-alert-lanes/SDAChess branch November 26, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants