Skip to content

Commit b7add6d

Browse files
committed
use artifact-ids to upload/download artifacts between jobs for safety
1 parent 4eabf47 commit b7add6d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
permissions:
1313
contents: write
1414
runs-on: ubuntu-latest
15+
outputs:
16+
artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }}
1517

1618
steps:
1719
- name: checkout
@@ -35,6 +37,7 @@ jobs:
3537

3638
- name: upload artifact
3739
uses: actions/upload-artifact@4.6.2
40+
id: upload-artifact
3841
with:
3942
path: dist/
4043

@@ -46,10 +49,12 @@ jobs:
4649
contents: read
4750
uses: github/salsa/.github/workflows/sign-artifact.yml@main
4851
with:
52+
artifact-ids: ${{ needs.release.outputs.artifact-id }}
4953
artifact-path: "."
5054

5155
verify:
52-
needs: sign
56+
needs: [release, sign]
5357
uses: github/salsa/.github/workflows/verify.yml@main
5458
with:
59+
artifact-ids: ${{ needs.release.outputs.artifact-id }}
5560
artifact-path: "."

0 commit comments

Comments
 (0)