Skip to content

Commit 24cdf35

Browse files
committed
infra: only prompt on attestation verify failure
Build age is printed with every preflight, but successful verification now flows straight through without a confirmation prompt. Only a failed verify interrupts the deploy with the red-bold banner + prompt.
1 parent b24afdc commit 24cdf35

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

typescript/infra/src/utils/attestation.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,13 @@ export async function verifyImagesAndConfirm(refs: ImageRef[]): Promise<void> {
151151
console.log(chalk.grey.italic('Verifying image attestations...'));
152152
const { allVerified } = await preflightVerifyImages(refs);
153153

154-
const message = allVerified
155-
? 'All attestations verified. Continue with deploy?'
156-
: chalk.red.bold(
157-
'One or more images FAILED attestation verify. Continue with deploy anyway?',
158-
);
154+
if (allVerified) return;
159155

160156
const shouldContinue = await confirm({
161-
message,
162-
default: allVerified,
157+
message: chalk.red.bold(
158+
'One or more images FAILED attestation verify. Continue with deploy anyway?',
159+
),
160+
default: false,
163161
});
164162

165163
if (!shouldContinue) {

0 commit comments

Comments
 (0)