Skip to content

Commit 74f557a

Browse files
committed
.github/workflows - add SBOM to release.yaml
1 parent 8305aeb commit 74f557a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,17 @@ jobs:
430430
# Move SHA256SUMS to release-files
431431
mv SHA256SUMS release-files/
432432
433+
- name: Generate and Download SBOM from GitHub
434+
env:
435+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
436+
run: |
437+
echo "Fetching SBOM from GitHub Dependency Graph API..."
438+
gh api \
439+
-H "Accept: application/vnd.github+json" \
440+
-H "X-GitHub-Api-Version: 2022-11-28" \
441+
/repos/${{ github.repository }}/dependency-graph/sbom | jq -r '.sbom' > sbom.json
442+
mv sbom.json release-files/
443+
433444
- name: Verify release files
434445
run: |
435446
echo "=== Final release file count ==="

0 commit comments

Comments
 (0)