ReviewOS

also looking at this

craft-native/craft

fix(ci): gate release publishing on SBOM scan

#314
Merged glennmichael123 wants to merge codex/release-sbom-prerequisite into main
5 files +44 -9
.github/workflows/sbom.ymlmodified+8-1
Changes to .github/workflows/sbom.yml
@@ -4,6 +4,11 @@ on:
44 push:
55 branches: [main]
66 workflow_call:
7 inputs:
8 enforce_high:
9 description: Fail the release scan when High findings remain
10 type: boolean
11 default: false
712 workflow_dispatch:
813
914concurrency:
@@ -26,7 +31,7 @@ jobs:
2631 bun-version: latest
2732
2833 - name: Install dependencies
29 run: bun install
34 run: bun install --frozen-lockfile
3035
3136 - name: Install SBOM tools
3237 run: |
@@ -121,6 +126,8 @@ jobs:
121126
122127 - name: Scan and validate vulnerability report
123128 run: bun scripts/scan-sbom.ts sbom/full-sbom.cyclonedx.json scan-results
129 env:
130 CRAFT_FAIL_HIGH: ${{ inputs.enforce_high || false }}
124131
125132 - name: Upload scan results
126133 if: ${{ always() }}