Skip to content

Commit 2d331fc

Browse files
authored
chore(.github/workflows/release.yml): update release workflow to correctly pass tag_name output to SLSA generator (#3988)
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent a61d870 commit 2d331fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
timeout-minutes: 60
1717
outputs:
1818
hashes: ${{ steps.hash.outputs.hashes }}
19+
tag_name: ${{ steps.tag.outputs.tag_name }}
1920
steps:
2021
- name: Checkout
2122
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
@@ -69,6 +70,6 @@ jobs:
6970
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0
7071
with:
7172
base64-subjects: "${{ needs.goreleaser.outputs.hashes }}"
73+
upload-tag-name: "${{ needs.goreleaser.outputs.tag_name }}"
7274
upload-assets: true # upload to a new release
73-
upload-tag-name: "${{ needs.release.outputs.tag_name }}"
7475
draft-release: true

0 commit comments

Comments
 (0)