Skip to content

Commit 8d0f061

Browse files
ci(release): make SBOM generation non-blocking
1 parent 4d41f4f commit 8d0f061

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,17 @@ jobs:
190190

191191
- name: Generate CycloneDX SBOM
192192
# Software Bill of Materials attached to every release. CycloneDX 1.5 JSON.
193-
# --legacy-peer-deps: Gordon builds with Bun, which does not enforce
194-
# peer ranges, and one transitive SDK still pins an older `ai` major.
195-
# npm's strict peer resolution would fail this lockfile-only pass; the
196-
# flag keeps SBOM generation working without changing what ships.
193+
#
194+
# Gordon installs with Bun, so the dependency tree npm sees will always
195+
# look inconsistent to it (npm reports every peer range Bun does not
196+
# enforce as missing/invalid). That is a reporting artifact, not a
197+
# broken tree: the shipped binary is built from bun.lock. The refresh is
198+
# therefore best-effort and the whole step is non-blocking, since the
199+
# SBOM is a release attachment and must never gate a release.
200+
continue-on-error: true
197201
run: |
198-
npm install --package-lock-only --ignore-scripts --legacy-peer-deps
202+
npm install --package-lock-only --ignore-scripts --legacy-peer-deps \
203+
|| echo "npm lockfile refresh reported peer issues; continuing (bun.lock is the source of truth)"
199204
node scripts/dev/codegen/generate-sbom.cjs --output gordon-sbom.json
200205
201206
- name: Create or update GitHub Release

0 commit comments

Comments
 (0)