Skip to content

Commit 3d664b5

Browse files
authored
Merge pull request #31 from github/attest-build-provenance
Attest build provenance
2 parents 675af1f + 83c5ada commit 3d664b5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@ on:
77

88
permissions:
99
contents: write
10+
id-token: write
11+
attestations: write
1012

1113
jobs:
1214
release:
1315
runs-on: ubuntu-latest
1416

1517
steps:
1618
- name: checkout
17-
uses: actions/checkout@v4
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
1820
with:
1921
fetch-depth: 0
2022
persist-credentials: false
2123

2224
- name: setup go
23-
uses: actions/setup-go@v5
25+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # pin@v5
2426
with:
2527
go-version-file: "go.mod"
2628
cache: false
@@ -31,3 +33,7 @@ jobs:
3133
args: release --clean
3234
env:
3335
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # pin@v2
38+
with:
39+
subject-path: "dist/"

.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ changelog:
2929

3030
release:
3131
draft: false
32+
33+
dist: "./dist"

0 commit comments

Comments
 (0)