Skip to content

Commit 4f8424e

Browse files
authored
Merge pull request #854 from crazy-max/cosign-no-verbose
sigstore: remove verbose flag from persisted cosign args
2 parents fd15fa0 + d018ed1 commit 4f8424e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sigstore/sigstore.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export class Sigstore {
8080
await core.group(`Signing attestation manifest ${attestationRef}`, async () => {
8181
// prettier-ignore
8282
const cosignArgs = [
83-
'--verbose',
8483
'sign',
8584
'--yes',
8685
'--oidc-provider', 'github-actions',
@@ -92,7 +91,7 @@ export class Sigstore {
9291
cosignArgs.push('--tlog-upload=false');
9392
}
9493
core.info(`[command]cosign ${[...cosignArgs, attestationRef].join(' ')}`);
95-
const execRes = await Exec.getExecOutput('cosign', [...cosignArgs, attestationRef], {
94+
const execRes = await Exec.getExecOutput('cosign', ['--verbose', ...cosignArgs, attestationRef], {
9695
ignoreReturnCode: true,
9796
silent: true,
9897
env: Object.assign({}, process.env, {
@@ -141,7 +140,6 @@ export class Sigstore {
141140
await core.group(`Verifying signature of ${attestationRef}`, async () => {
142141
// prettier-ignore
143142
const cosignArgs = [
144-
'--verbose',
145143
'verify',
146144
'--experimental-oci11',
147145
'--new-bundle-format',
@@ -154,7 +152,7 @@ export class Sigstore {
154152
}
155153
core.info(`[command]cosign ${[...cosignArgs, attestationRef].join(' ')}`);
156154
for (let attempt = 0; attempt < retries; attempt++) {
157-
const execRes = await Exec.getExecOutput('cosign', [...cosignArgs, attestationRef], {
155+
const execRes = await Exec.getExecOutput('cosign', ['--verbose', ...cosignArgs, attestationRef], {
158156
ignoreReturnCode: true,
159157
silent: true,
160158
env: Object.assign({}, process.env, {

0 commit comments

Comments
 (0)