File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 55 push :
66 tags : ["v*"]
77
8+ # Releases need permissions to read and write the repository contents.
9+ # GitHub considers creating releases and uploading assets as writing contents.
10+ permissions :
11+ contents : write
12+
813jobs :
914 goreleaser :
1015 runs-on : ubuntu-latest
1116 steps :
1217 - name : Checkout
13- uses : actions/checkout@v4
18+ uses : actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
1419 with :
1520 fetch-depth : 0
1621
1722 - name : Set up Go
18- uses : actions/setup-go@v5
23+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
1924 with :
2025 go-version-file : ' go.mod'
2126
2227 - name : Import GPG key
2328 id : import_gpg
24- uses : crazy-max/ghaction-import-gpg@v6
29+ uses : crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
2530 with :
2631 gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
32+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
2733
2834 - name : Run GoReleaser
29- uses : goreleaser/goreleaser-action@v5
35+ uses : goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
3036 with :
31- version : latest
3237 args : release --clean
3338 env :
3439 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35- GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
40+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
Original file line number Diff line number Diff line change 11---
2+ version : 2
23builds :
34 - env :
45 - CGO_ENABLED=0
You can’t perform that action at this time.
0 commit comments