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/release.ymlmodified+7-3
Changes to .github/workflows/release.yml
@@ -25,9 +25,13 @@ jobs:
2525 release-sbom:
2626 needs: validate-release
2727 uses: ./.github/workflows/sbom.yml
28 with:
29 enforce_high: true
2830
2931 pantry:
30 needs: [validate-release]
32 # The reusable SBOM workflow includes the vulnerability scan. Publishing
33 # must wait for its existing Critical gate, not merely attach it afterward.
34 needs: [validate-release, release-sbom]
3135 name: pantry (${{ matrix.platform.name }})
3236 strategy:
3337 fail-fast: false
@@ -65,7 +69,7 @@ jobs:
6569 run: ${{ matrix.platform.deps }}
6670
6771 - name: Install Dependencies
68 run: bun install
72 run: bun install --frozen-lockfile
6973
7074 - name: Extract Version
7175 id: version
@@ -532,7 +536,7 @@ jobs:
532536 - name: Setup Pantry (provides Bun, Zig, etc.)
533537 uses: pantry-pm/pantry/packages/action@235036fa0f48bae99b2293df5a3dc35c809b1777 # pinned: last SHA whose bundled typescript resolves on linux-x64
534538 - name: Install Dependencies
535 run: bun install
539 run: bun install --frozen-lockfile
536540
537541 - name: Test package regressions
538542 run: bun run test:packages