Skip to content

Commit 29249e4

Browse files
committed
ci(trivy): report dev image scans and stop prerelease uploads
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>
1 parent b8b6d6f commit 29249e4

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

‎.github/workflows/release-dev.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,24 @@ jobs:
256256
tasks/scripts/verify-image-sbom.sh "quay.io/ai-openshell/${component}:dev" --require-cargo
257257
done
258258
259+
# Fixed :dev references keep the Code Scanning categories stable, so each
260+
# scan replaces the previous one and fixed findings close.
261+
trivy:
262+
name: Scan Dev Images
263+
needs: tag-ghcr-dev
264+
permissions:
265+
contents: read
266+
packages: read
267+
security-events: write
268+
uses: ./.github/workflows/trivy-scan.yml
269+
with:
270+
images: |
271+
quay.io/ai-openshell/gateway:dev
272+
quay.io/ai-openshell/sandbox:dev
273+
quay.io/ai-openshell/supervisor:dev
274+
secrets:
275+
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
276+
259277
build-deb:
260278
name: Build Debian Packages
261279
needs: [compute-versions, build-binaries-linux, build-binaries-macos, build-vm-driver-linux, build-vm-driver-macos]

‎.github/workflows/security-scan.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
required: true
1212
type: string
1313
fail-on-static-findings:
14-
description: Fail when CodeQL, Trivy, or Zizmor reports HIGH/CRITICAL findings
14+
description: Fail when CodeQL or Zizmor reports HIGH/CRITICAL findings
1515
default: true
1616
type: boolean
1717
images:
@@ -29,7 +29,7 @@ on:
2929
required: true
3030
type: string
3131
fail-on-static-findings:
32-
description: Fail when CodeQL, Trivy, or Zizmor reports HIGH/CRITICAL findings
32+
description: Fail when CodeQL or Zizmor reports HIGH/CRITICAL findings
3333
default: true
3434
type: boolean
3535
images:
@@ -68,9 +68,11 @@ jobs:
6868
security-events: write
6969
with:
7070
candidate_ref: ${{ inputs.candidate_ref }}
71-
fail-on-findings: ${{ inputs.fail-on-static-findings }}
71+
# Informational only; Release Dev owns the Trivy alerts on main.
72+
fail-on-findings: false
7273
severity: HIGH,CRITICAL
7374
ignore-unfixed: false
75+
upload-sarif: false
7476
images: ${{ inputs.images }}
7577
charts: ${{ inputs.charts }}
7678
secrets:

0 commit comments

Comments
 (0)