Skip to content

Commit 58370ea

Browse files
committed
Use --passphrase flag directly instead of --passphrase-fd for GPG signing
1 parent 025f343 commit 58370ea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.goreleaser.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,34 @@ signs:
4242
- id: checksum
4343
artifacts: checksum
4444
args:
45-
# Use passphrase from environment variable via file descriptor
45+
# Use passphrase directly from environment variable
4646
- "--batch"
47+
- "--yes"
4748
- "--pinentry-mode"
4849
- "loopback"
49-
- "--passphrase-fd"
50-
- "0"
50+
- "--passphrase"
51+
- "{{ .Env.GPG_PASSPHRASE }}"
5152
- "--local-user"
5253
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
5354
- "--output"
5455
- "${signature}"
5556
- "--detach-sign"
5657
- "${artifact}"
57-
stdin: "{{ .Env.GPG_PASSPHRASE }}"
5858
- id: archive
5959
artifacts: archive
6060
args:
6161
- "--batch"
62+
- "--yes"
6263
- "--pinentry-mode"
6364
- "loopback"
64-
- "--passphrase-fd"
65-
- "0"
65+
- "--passphrase"
66+
- "{{ .Env.GPG_PASSPHRASE }}"
6667
- "--local-user"
6768
- "{{ .Env.GPG_FINGERPRINT }}"
6869
- "--output"
6970
- "${signature}"
7071
- "--detach-sign"
7172
- "${artifact}"
72-
stdin: "{{ .Env.GPG_PASSPHRASE }}"
7373
release:
7474
# If you want to manually examine the release before its live, uncomment this line:
7575
draft: true

0 commit comments

Comments
 (0)