Commit 94354c4
fix(ci): enable corepack in dependency-scan so cdxgen produces a real SBOM
The dependency-scan workflow has been silently broken since it was added
(SEC-7263). cdxgen internally runs `yarn install` but corepack was never
enabled, so it fell back to system yarn 1.x, failed silently, and produced
a 0-component BOM. OPA then evaluated the empty BOM and vacuously passed.
- Enable corepack and install deps before the shared generate-sbom action
- Add a non-zero component guard so empty scans fail loudly
- Document that this workflow checks license compliance, not CVEs
Fixes: SDK-2170
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ef79eac commit 94354c4
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 | | |
2 | 11 | | |
3 | 12 | | |
| |||
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
15 | 40 | | |
16 | 41 | | |
17 | 42 | | |
| |||
28 | 53 | | |
29 | 54 | | |
30 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments