Skip to content

verify-signature command should return non-zero exit code when unsuccessful #1192

@JoeRobich

Description

@JoeRobich

I am working on a pipeline which will verify signatures prior to publishing and it would be really useful if the command would only return 0 as an exit code when the verification was successful.

~/Downloads> npx @vscode/vsce verify-signature --packagePath ./dotnet-maui-darwin-arm64-1.11.49-g921c239287.vsix --manifestPath ./dotnet-maui-darwin-arm64-1.11.49-g921c239287.manif --signaturePath ./dotnet-maui-darwin-arm64-1.11.49-g921c239287.signature.p7s
Signature verification result: PackageIntegrityCheckFailed
Package file size:  18317200
Signature archive file size:  28137
Manifest file size:  83880
Signature file size:  10419
Manifest file hash:  zNtWBCTdCv/1A52a7teS14/Tl7Zeo2Z6mRkqyzFit2k=
Signature file hash:  nope5mcF2NX5JW6uqA6ZyDa629LLmxAvPa1XQX2YXS0=
Package file hash:  6z7IXeRFV6//lyjbck4f/dUoIUNn1E1jLU0FwH+HxNA=
ManifestPackageIntegrityPolicy failed:  unexpected package size.
Exit code:  PackageIntegrityCheckFailed

~/Downloads> $LastExitCode
0

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions