Commit aaaf91d
authored
refactor(build): track third-party notices deterministically + add CI SBOM (#978)
The bundled dist/ is committed and redistributes ~214 production dependencies,
so their license notices must ship alongside it. The generated notice file sat
in limbo — produced on every build, committed by the release pipeline, deleted
by Renovate commits, excluded from the CI dist-diff check for renovate branches,
and never gitignored — so it perpetually showed as untracked.
- Rename dist/licenses.txt to dist/THIRD_PARTY_NOTICES.txt and commit it as the
tracked attribution for the bundled dependencies. Generation is already
deterministic (stable sort, normalized line endings); a total license-collection
failure now fails the build instead of silently writing nothing, while benign
per-dependency gaps still produce the file.
- Remove the renovate-branch carve-out from the dist/ comparison so every branch
verifies the notice file like the rest of dist/.
- Generate a CycloneDX dependency SBOM in CI via pnpm sbom and upload it as a
build artifact.
Extract formatThirdPartyNotices() as a pure, tested helper.1 parent 571b2cd commit aaaf91d
6 files changed
Lines changed: 15077 additions & 19 deletions
File tree
- .github/workflows
- dist
- docs/plans
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 98 | + | |
103 | 99 | | |
104 | | - | |
| 100 | + | |
105 | 101 | | |
106 | 102 | | |
107 | 103 | | |
| |||
111 | 107 | | |
112 | 108 | | |
113 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
| 734 | + | |
734 | 735 | | |
735 | 736 | | |
736 | 737 | | |
| |||
0 commit comments