Commit c13f384
ci(sbom): pin deps, harden token, partial-clone bomsh
Three supply-chain hardenings on .github/workflows/sbom.yml:
* Pin pcpp to ==1.30.* in both jobs that install it
(unit + standalone), matching the existing pin convention
used in the same file for spdx-tools, ntia-conformance-
checker, and cyclonedx-bom. A pcpp release that changes
macro-expansion or noise semantics will no longer silently
shift SBOM build_props on master (1zj.1).
* Add 'permissions: contents: read' at workflow level. The
workflow does no API writes, so the practical risk of the
default read-write GITHUB_TOKEN on push events is zero
today; the explicit pin is GitHub's documented hardening
recommendation for SBOM-producing supply-chain workflows
so a future step that accidentally introduces a write call
fails loudly rather than silently mutating the repo (1zj.2).
* Switch the bomsh clone to git clone --filter=blob:none.
Full history was being downloaded before 'git checkout
$BOMSH_SHA'; --depth=1 cannot be combined with a raw SHA,
so --filter=blob:none is the closest 'shallow' substitute.
Saves ~10s of CI time per bomsh job run (1zj.3).
Closes wolfssl-1zj.1, wolfssl-1zj.2, wolfssl-1zj.31 parent 2d78c98 commit c13f384
1 file changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
37 | 51 | | |
38 | | - | |
| 52 | + | |
39 | 53 | | |
40 | 54 | | |
41 | 55 | | |
| |||
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
66 | | - | |
| 80 | + | |
67 | 81 | | |
68 | 82 | | |
69 | 83 | | |
| |||
880 | 894 | | |
881 | 895 | | |
882 | 896 | | |
883 | | - | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
884 | 904 | | |
885 | 905 | | |
886 | 906 | | |
| |||
0 commit comments