Skip to content

Commit 53f286b

Browse files
committed
ci/cd: use non-interactive mode for cosign
1 parent 369c7b8 commit 53f286b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,10 @@ binary_signs:
160160
signature: "${artifact}.sigstore.json"
161161
args:
162162
- sign-blob
163+
- "--identity-token={{ index .Env \"SIGSTORE_ID_TOKEN\" }}"
163164
- "--bundle=${signature}"
164165
- "${artifact}"
165166
- "--yes"
166-
env:
167-
- SIGSTORE_ID_TOKEN={{ index .Env "SIGSTORE_ID_TOKEN" }}
168167
output: true
169168

170169
signs:
@@ -174,11 +173,10 @@ signs:
174173
signature: "${artifact}.sigstore.json"
175174
args:
176175
- sign-blob
176+
- "--identity-token={{ index .Env \"SIGSTORE_ID_TOKEN\" }}"
177177
- "--bundle=${signature}"
178178
- "${artifact}"
179179
- "--yes"
180-
env:
181-
- SIGSTORE_ID_TOKEN={{ index .Env "SIGSTORE_ID_TOKEN" }}
182180
output: true
183181

184182
nfpms:
@@ -348,10 +346,9 @@ docker_signs:
348346
- arcane-agent-next-distroless
349347
args:
350348
- sign
349+
- "--identity-token={{ index .Env \"SIGSTORE_ID_TOKEN\" }}"
351350
- "${artifact}@${digest}"
352351
- "--yes"
353-
env:
354-
- SIGSTORE_ID_TOKEN={{ index .Env "SIGSTORE_ID_TOKEN" }}
355352
output: true
356353

357354
blobs:

0 commit comments

Comments
 (0)