Skip to content

Commit 9a5a137

Browse files
ci(release): tolerate npm-ls dev peer warning in SBOM step (--ignore-npm-errors)
The release workflow's CycloneDX SBOM step failed with ELSPROBLEMS — the same harmless madge→precinct TypeScript-5.x peer mismatch already handled in ci.yml's Security job, but release.yml was never patched. Add the identical --ignore-npm-errors flag so the (valid, complete) SBOM generates and the release pipeline can proceed to SLSA provenance + cosign + image publish. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1bad7b8 commit 9a5a137

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ jobs:
2828
- run: npm run build
2929
- run: npm run test:coverage
3030
- name: CycloneDX 1.6 SBOM
31-
run: npx --yes @cyclonedx/cyclonedx-npm@latest --output-format JSON --spec-version 1.6 --output-file sbom.json
31+
# --ignore-npm-errors: `npm ls` exits non-zero on a harmless dev-only peer
32+
# mismatch (madge→precinct wants TypeScript 5.x while the project pins 6.x);
33+
# the installed tree is valid, so the SBOM is still complete and accurate.
34+
# (Mirrors the same flag in ci.yml's Security job.)
35+
run: npx --yes @cyclonedx/cyclonedx-npm@latest --ignore-npm-errors --output-format JSON --spec-version 1.6 --output-file sbom.json
3236
- name: Pack tarball (from a staging dir → Apache-2.0 LICENSE, no GPL leak)
3337
# The published library is Apache-2.0 but the repo root LICENSE is GPL-3.0
3438
# (the app/aggregate). `npm pack` force-includes the root LICENSE; pack from

0 commit comments

Comments
 (0)