Skip to content

Commit 6cb7d63

Browse files
committed
extract out sign/verify steps
1 parent 6b7641b commit 6cb7d63

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions: {}
99

1010
jobs:
1111
release:
12+
if: github.repository == 'github/gh-combine'
1213
permissions:
1314
contents: write
1415
runs-on: ubuntu-latest
@@ -43,19 +44,34 @@ jobs:
4344

4445
sign:
4546
needs: release
47+
runs-on: ubuntu-latest
4648
permissions:
4749
id-token: write
4850
attestations: write
4951
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+
uses: actions/[email protected]
59+
with:
60+
subject-path: "."
5461

5562
verify:
5663
permissions: {}
64+
runs-on: ubuntu-latest
5765
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

0 commit comments

Comments
 (0)