Commit 1923cb2
chore(release): swap SBOM tool to cdxgen — Corepack-proof (#69)
PR #68's `npm install --package-lock-only` SBOM fix did not survive
contact with the runner. The v1.2.0 publish attempt at run 25407540759
hit the same "no evidence: no package lock file" error from
@cyclonedx/cyclonedx-npm.
Root cause: Corepack interception. When the workspace's
`package.json#packageManager` is `pnpm@9.12.0`, Corepack (bundled with
Node 20) intercepts direct `npm install` calls and either rejects
them or rewrites them to pnpm — neither of which generates the
`package-lock.json` that cyclonedx-npm requires as evidence.
Fix: switch to `@cyclonedx/cdxgen@11`. cdxgen is the multi-package-
manager CycloneDX generator and reads `pnpm-lock.yaml` natively from
the workspace root. No transient lockfile round-trip; no Corepack
interaction.
Workflow change is local to the SBOM step:
- Replace `npx @cyclonedx/cyclonedx-npm@2.1.0 ...` with
`npx @cyclonedx/cdxgen@11 --type js --no-recurse --spec-version 1.5 ...`
- Drop the `npm install --package-lock-only` and `rm package-lock.json`
scaffolding (no longer needed).
- `FETCH_LICENSE: "true"` env so the SBOM includes upstream license
metadata where available.
Updated `packages/k8s-baseline/tests/release-readiness.test.ts`
invariant to assert `@cyclonedx/cdxgen` instead of
`@cyclonedx/cyclonedx-npm`.
After this PR merges: delete the failed v1.2.0 tag once more, retag at
the new HEAD, push.
git tag -d v1.2.0
git push origin --delete v1.2.0
git tag -a v1.2.0 -m "v1.2.0 — atomic four-package release: K8s security + Operations + pre-public-launch"
git push origin v1.2.0
Verified locally: 487 tests pass; format/lint/license-boundary/pin-guard
all clean.
Signed-off-by: Sherif Mansour <13433538+kerberosmansour@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e536891 commit 1923cb2
2 files changed
Lines changed: 28 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
109 | 115 | | |
110 | | - | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
65 | | - | |
| 64 | + | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
0 commit comments