sigstore: remove verbose flag from persisted cosign args
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -80,7 +80,6 @@ export class Sigstore {
|
|||||||
await core.group(`Signing attestation manifest ${attestationRef}`, async () => {
|
await core.group(`Signing attestation manifest ${attestationRef}`, async () => {
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
const cosignArgs = [
|
const cosignArgs = [
|
||||||
'--verbose',
|
|
||||||
'sign',
|
'sign',
|
||||||
'--yes',
|
'--yes',
|
||||||
'--oidc-provider', 'github-actions',
|
'--oidc-provider', 'github-actions',
|
||||||
@@ -92,7 +91,7 @@ export class Sigstore {
|
|||||||
cosignArgs.push('--tlog-upload=false');
|
cosignArgs.push('--tlog-upload=false');
|
||||||
}
|
}
|
||||||
core.info(`[command]cosign ${[...cosignArgs, attestationRef].join(' ')}`);
|
core.info(`[command]cosign ${[...cosignArgs, attestationRef].join(' ')}`);
|
||||||
const execRes = await Exec.getExecOutput('cosign', [...cosignArgs, attestationRef], {
|
const execRes = await Exec.getExecOutput('cosign', ['--verbose', ...cosignArgs, attestationRef], {
|
||||||
ignoreReturnCode: true,
|
ignoreReturnCode: true,
|
||||||
silent: true,
|
silent: true,
|
||||||
env: Object.assign({}, process.env, {
|
env: Object.assign({}, process.env, {
|
||||||
@@ -141,7 +140,6 @@ export class Sigstore {
|
|||||||
await core.group(`Verifying signature of ${attestationRef}`, async () => {
|
await core.group(`Verifying signature of ${attestationRef}`, async () => {
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
const cosignArgs = [
|
const cosignArgs = [
|
||||||
'--verbose',
|
|
||||||
'verify',
|
'verify',
|
||||||
'--experimental-oci11',
|
'--experimental-oci11',
|
||||||
'--new-bundle-format',
|
'--new-bundle-format',
|
||||||
@@ -154,7 +152,7 @@ export class Sigstore {
|
|||||||
}
|
}
|
||||||
core.info(`[command]cosign ${[...cosignArgs, attestationRef].join(' ')}`);
|
core.info(`[command]cosign ${[...cosignArgs, attestationRef].join(' ')}`);
|
||||||
for (let attempt = 0; attempt < retries; attempt++) {
|
for (let attempt = 0; attempt < retries; attempt++) {
|
||||||
const execRes = await Exec.getExecOutput('cosign', [...cosignArgs, attestationRef], {
|
const execRes = await Exec.getExecOutput('cosign', ['--verbose', ...cosignArgs, attestationRef], {
|
||||||
ignoreReturnCode: true,
|
ignoreReturnCode: true,
|
||||||
silent: true,
|
silent: true,
|
||||||
env: Object.assign({}, process.env, {
|
env: Object.assign({}, process.env, {
|
||||||
|
|||||||
Reference in New Issue
Block a user