Skip to content

Commit e9d3da0

Browse files
authored
Fix Attest build provenance failing (#602)
* upload dist folder to make it accessible in provenance job * pin commit sha's for uploading & downloading artifacts
1 parent ec79295 commit e9d3da0

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/goreleaser.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
args: release --clean
8080
env:
8181
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
82+
- name: Upload dist folder
83+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
84+
with:
85+
name: dist-artifacts
86+
path: dist/
8287

8388
provenance:
8489
needs: [goreleaser]
@@ -88,7 +93,13 @@ jobs:
8893
attestations: write # To write attestations
8994
runs-on: ubuntu-latest
9095
steps:
96+
- name: Download dist folder
97+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
98+
with:
99+
name: dist-artifacts
100+
path: dist/
101+
91102
- name: Attest build provenance (checksums)
92103
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0
93104
with:
94-
subject-checksums: ./dist/checksums.txt
105+
subject-checksums: dist/checksums.txt

0 commit comments

Comments
 (0)