Skip to content

Commit 5eaec0d

Browse files
committed
chore(ci): fix attest-build-provenance subject-checksums usage
Unlike subject-path, it does not take a glob. - https://github.com/actions/attest-build-provenance/blob/c6f9859ac6fd46168bba4ac441e2994fa837fc39/action.yml#L26-L30 - https://github.com/actions/attest/blob/9902fb2594e0b5bbab9995737abd2547cde67f22/src/subject.ts#L146-L149 Grab the needed version string from goreleaser metadata output instead. Ref https://github.com/orgs/goreleaser/discussions/6295
1 parent 463389c commit 5eaec0d

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
@@ -72,6 +72,7 @@ jobs:
7272
run: docker login -u golangci -p ${{ secrets.GOLANGCI_LINT_DOCKER_TOKEN }}
7373

7474
- name: Create release
75+
id: goreleaser
7576
uses: goreleaser/goreleaser-action@v6
7677
with:
7778
version: latest
@@ -84,7 +85,7 @@ jobs:
8485

8586
- uses: actions/attest-build-provenance@v3
8687
with:
87-
subject-checksums: ./dist/golangci-lint-*-checksums.txt
88+
subject-checksums: ./dist/golangci-lint-${{ fromJSON(steps.goreleaser.outputs.metadata).version }}-checksums.txt
8889
github-token: ${{ secrets.GOLANGCI_LINT_TOKEN }}
8990
- uses: actions/attest-build-provenance@v3
9091
with:

0 commit comments

Comments
 (0)