Skip to content

Commit 47330ab

Browse files
authored
Merge pull request #1233 from JoeRobich/dev/jorobich/set-exitcode
Return non-zero exit code when signature verification fails
2 parents d6d2ef0 + 7a8969b commit 47330ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/package.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,6 +1968,9 @@ export async function verifySignature(packageFile: string, manifestFile: string,
19681968
if (result.output) {
19691969
console.log(result.output)
19701970
}
1971+
if (result.code !== vsceSign.ExtensionSignatureVerificationCode.Success) {
1972+
process.exitCode = 1;
1973+
}
19711974
} finally {
19721975
await fs.promises.unlink(sigzipPath);
19731976
}

0 commit comments

Comments
 (0)