Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/sbom-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ jobs:
sbom: sbom-image.cdx.json
output-format: sarif
severity-cutoff: high
# Gate only on vulnerabilities with an available fix; base-image CVEs
# that upstream marks not-fixed/wont-fix are unactionable and would
# otherwise block every release. Full unfixed set stays visible via
# the Trivy SARIF upload.
only-fixed: true

- name: Upload Grype SARIF to GitHub Security tab
uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
Expand All @@ -187,6 +192,7 @@ jobs:
sbom: sbom-image.cdx.json
output-format: json
severity-cutoff: high
only-fixed: true

- name: Prepare release assets
env:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/sbom-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ jobs:
sbom: sbom-source.cdx.json
output-format: sarif
severity-cutoff: high
# Gate only on vulnerabilities with an available fix; deps with no
# upstream fix (not-fixed/wont-fix) are unactionable and would
# otherwise block every release. Full unfixed set stays visible via
# the Trivy SARIF upload.
only-fixed: true

- name: Upload Grype SARIF to GitHub Security tab
uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
Expand All @@ -162,6 +167,7 @@ jobs:
sbom: sbom-source.cdx.json
output-format: json
severity-cutoff: high
only-fixed: true

- name: Prepare release assets
env:
Expand Down
4 changes: 3 additions & 1 deletion .mise/tasks/sbom/grype
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
#MISE depends=["sbom:enrich"]
#MISE tools={grype="latest"}

grype sbom:enriched-source.cdx.json
# --only-fixed mirrors the CI gate (sbom-source.yml / sbom-image.yml): report
# only actionable vulnerabilities that have an upstream fix available.
grype --only-fixed sbom:enriched-source.cdx.json