Skip to content

Commit 563ca77

Browse files
authored
chore: Prepare to sign with new GPG key (argoproj-labs) (#424)
Signed-off-by: Marco Maurer <[email protected]>
1 parent ce8de3b commit 563ca77

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,36 @@ on:
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+
813
jobs:
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 }}

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
version: 2
23
builds:
34
- env:
45
- CGO_ENABLED=0

0 commit comments

Comments
 (0)