13
13
permissions :
14
14
contents : write
15
15
outputs :
16
- build-provenance-artifact-name : build-provenance
17
16
build-provenance-artifact-id : ${{ steps.upload-build-provenance.outputs.artifact-id }}
18
- sbom-artifact-name : sbom-artifact
19
17
sbom-artifact-id : ${{ steps.upload-sbom.outputs.artifact-id }}
20
18
sbom-attestations : ${{ steps.upload-sbom.outputs.attestations }}
21
19
steps :
41
39
dist/vipdatasync_*/vipdatasync
42
40
dist/vipdatasync_*.tar.gz
43
41
dist/**/*.sbom.json
44
- - uses : typisttech/upload-goreleaser-sboms-action@v0
42
+ - uses : typisttech/upload-goreleaser-sboms-action@main
45
43
id : upload-sbom
46
- with :
47
- artifact : sbom-artifact
48
44
49
45
attest-build-provenance :
50
46
needs : [release]
56
52
- uses : actions/download-artifact@v4
57
53
with :
58
54
path : dist
59
- name : ${{ needs.release.outputs. build-provenance-artifact-name }}
55
+ name : build-provenance
60
56
- uses : actions/attest-build-provenance@v1
61
57
with :
62
58
subject-path : |
@@ -76,30 +72,29 @@ jobs:
76
72
steps :
77
73
- uses : actions/download-artifact@v4
78
74
with :
79
- name : ${{ needs.release.outputs. sbom-artifact-name }}
75
+ name : sbom-artifact
80
76
- uses : actions/attest-sbom@v1
81
77
with :
82
78
subject-path : ${{ matrix.attestation.subject }}
83
79
sbom-path : ${{ matrix.attestation.sbom }}
84
80
85
- verify-attestation :
81
+ verify :
86
82
needs : [release, attest-build-provenance, attest-sbom]
87
83
runs-on : ubuntu-latest
88
84
steps :
89
- - run : gh release download --clobber --dir artifacts --repo $REPO --pattern $PATTERN $TAG
85
+ - run : gh release download --clobber --dir artifacts --repo $REPO $TAG
90
86
env :
91
87
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
92
88
REPO : ${{ github.repository }}
93
- PATTERN : ' *'
94
89
TAG : ${{ github.ref_name }}
95
90
- run : ls | xargs -I {} gh attestation verify --repo $REPO {}
96
91
working-directory : artifacts
97
92
env :
98
93
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
99
94
REPO : ${{ github.repository }}
100
95
101
- cleanup-artifact :
102
- needs : [release, verify-attestation ]
96
+ cleanup :
97
+ needs : [release, verify]
103
98
runs-on : ubuntu-latest
104
99
permissions :
105
100
actions : write
0 commit comments