File tree Expand file tree Collapse file tree 1 file changed +24
-8
lines changed Expand file tree Collapse file tree 1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ permissions: {}
9
9
10
10
jobs :
11
11
release :
12
+ if : github.repository == 'github/gh-combine'
12
13
permissions :
13
14
contents : write
14
15
runs-on : ubuntu-latest
@@ -43,19 +44,34 @@ jobs:
43
44
44
45
sign :
45
46
needs : release
47
+ runs-on : ubuntu-latest
46
48
permissions :
47
49
id-token : write
48
50
attestations : write
49
51
contents : read
50
- uses : github/salsa/.github/workflows/sign-artifact.yml@main
51
- with :
52
- artifact-ids : ${{ needs.release.outputs.artifact-id }}
53
- artifact-path : " ."
52
+ steps :
53
+ - uses : actions/download-artifact@54124fbd881f8ce794405a06896c93c49c17463e
54
+ with :
55
+ artifact-ids : ${{ needs.release.outputs.artifact-id }}
56
+
57
+ - name : attest build provenance
58
+
59
+ with :
60
+ subject-path : " ."
54
61
55
62
verify :
56
63
permissions : {}
64
+ runs-on : ubuntu-latest
57
65
needs : [release, sign]
58
- uses : github/salsa/.github/workflows/verify.yml@main
59
- with :
60
- artifact-ids : ${{ needs.release.outputs.artifact-id }}
61
- artifact-path : " ."
66
+ steps :
67
+ - uses : actions/download-artifact@54124fbd881f8ce794405a06896c93c49c17463e
68
+ with :
69
+ artifact-ids : ${{ needs.release.outputs.artifact-id }}
70
+
71
+ - name : verify
72
+ env :
73
+ OWNER : ${{ github.repository_owner }}
74
+ REPO : ${{ github.event.repository.name }}
75
+ ARTIFACT_PATH : " ."
76
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
77
+ run : gh attestation verify "$ARTIFACT_PATH" --repo ${OWNER}/${REPO} --signer-workflow ${OWNER}/${REPO}/.github/workflows/release.yml
You can’t perform that action at this time.
0 commit comments