File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,13 @@ jobs:
44
44
registry : ghcr.io
45
45
username : ${{ github.repository_owner }}
46
46
password : ${{ secrets.GITHUB_TOKEN }}
47
- - uses : advanced-security/sbom-generator-action@6fe43abf522b2e7a19bc769aec1e6c848614b517 # v0.0.2
48
- id : sbom
49
- env :
50
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
- - name : Move sbom to avoid dirty git
52
- run : mv "$GITHUB_SBOM_PATH" ./sbom.spdx.json
53
- env :
54
- GITHUB_SBOM_PATH : ${{ steps.sbom.outputs.fileName }}
47
+ - name : Export SBOM in SPDX JSON format
48
+ # https://docs.github.com/en/rest/dependency-graph/sboms?apiVersion=2022-11-28
49
+ run : |
50
+ gh api \
51
+ -H "Accept: application/vnd.github+json" \
52
+ -H "X-GitHub-Api-Version: 2022-11-28" \
53
+ /repos/${{ github.repository }}/dependency-graph/sbom > sbom.spdx.json
55
54
- uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
56
55
id : goreleaser
57
56
with :
You can’t perform that action at this time.
0 commit comments