Commit 6892174
authored
Verify MSI SBOM attestations (#87)
**Why**
The registry verifier is being extended to verify SPDX SBOM bundles from
release asset attestations. The non-Axiomatic Windows release path
already asks GoReleaser for installer SBOMs, but the Windows signing
step did not require them and the release validator skipped MSI SBOM
verification.
**What this changes**
- Requires each Windows zip and MSI artifact to have an SPDX SBOM before
signing SBOM attestation bundles.
- Fails the Windows release job if no Windows SBOM bundles are produced.
- Verifies MSI detached signatures, provenance attestations, and SBOM
attestations in the release artifact validator.
This can land after registry API PR #153; that registry PR intentionally
keeps MSI SBOMs optional during the workflow transition.
Validation:
- bash -n scripts/validate-release-artifacts.sh
- ruby -e 'require "yaml";
YAML.load_file(".github/workflows/release.yaml")'\n- go test
./cmd/generate-windows-manifest ./cmd/record-release
./cmd/generate-manifest ./cmd/merge-manifests\n- git diff --check1 parent 27167b3 commit 6892174
2 files changed
Lines changed: 48 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
645 | 642 | | |
646 | | - | |
647 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
648 | 646 | | |
649 | 647 | | |
650 | 648 | | |
651 | | - | |
| 649 | + | |
652 | 650 | | |
653 | 651 | | |
654 | | - | |
| 652 | + | |
655 | 653 | | |
656 | | - | |
657 | | - | |
658 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
659 | 657 | | |
660 | 658 | | |
661 | 659 | | |
662 | 660 | | |
663 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
664 | 666 | | |
665 | 667 | | |
666 | 668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
144 | 138 | | |
145 | | - | |
| 139 | + | |
146 | 140 | | |
| 141 | + | |
| 142 | + | |
147 | 143 | | |
148 | 144 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
152 | 149 | | |
153 | | - | |
154 | | - | |
155 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 159 | + | |
168 | 160 | | |
169 | 161 | | |
170 | 162 | | |
171 | | - | |
172 | | - | |
| 163 | + | |
| 164 | + | |
173 | 165 | | |
174 | 166 | | |
175 | 167 | | |
| |||
0 commit comments