ReviewOS

also looking at this

craft-native/craft

fix(release): attach and verify generated SBOM assets

#294
Merged glennmichael123 wants to merge codex/release-sbom-attachment into main
5 files +108 -18
.github/workflows/sbom.ymlmodified+2-16
Changes to .github/workflows/sbom.yml
@@ -3,14 +3,11 @@ name: SBOM
33on:
44 push:
55 branches: [main]
6 tags:
7 - 'v*'
8 release:
9 types: [published]
6 workflow_call:
107 workflow_dispatch:
118
129concurrency:
13 group: sbom-${{ github.head_ref || github.ref }}
10 group: sbom-${{ github.workflow }}-${{ github.head_ref || github.ref }}
1411 cancel-in-progress: true
1512
1613jobs:
@@ -208,17 +205,6 @@ jobs:
208205 path: sbom/
209206 retention-days: 90
210207
211 - name: Attach SBOM to release
212 if: github.event_name == 'release'
213 uses: softprops/action-gh-release@v1
214 with:
215 files: |
216 sbom/craft-sbom.json
217 sbom/full-sbom.cyclonedx.json
218 sbom/full-sbom.spdx.json
219 env:
220 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221
222208 - name: Submit to Dependency Graph
223209 if: github.ref == 'refs/heads/main'
224210 uses: anchore/sbom-action@v0