Skip to content

Commit

Permalink
Update conformance tests
Browse files Browse the repository at this point in the history
Signed-off-by: Appu Goundan <[email protected]>
  • Loading branch information
loosebazooka committed Sep 14, 2023
1 parent ce3d3a1 commit aab02b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
- name: Unpack sigstore-java distribution
run: tar -xvf ${{ github.workspace }}/sigstore-cli/build/distributions/sigstore-cli-*.tar --strip-components 1

- uses: sigstore/sigstore-conformance@064fb32a890c30235f305281f3509c5e65e6f9e5 # tag=v0.0.4
- uses: sigstore/sigstore-conformance@1abc82cdefe80bd907855d8447f903ba8b4918e0 # v0.0.6
with:
entrypoint: ${{ github.workspace }}/bin/sigstore-cli
6 changes: 5 additions & 1 deletion sigstore-cli/src/main/java/dev/sigstore/cli/Verify.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;

@Command(name = "verify", description = "verify an artifact")
@Command(
name = "verify",
aliases = {"verify-bundle"},
description = "verify an artifact")
public class Verify implements Callable<Integer> {
@Parameters(arity = "1", paramLabel = "<artifact>", description = "artifact to verify")
Path artifact;
Expand Down Expand Up @@ -65,6 +68,7 @@ static class Policy {
public Integer call() throws Exception {
byte[] digest = asByteSource(artifact.toFile()).hash(Hashing.sha256()).asBytes();
KeylessSignature keylessSignature = null;

if (signatureFiles.sigAndCert != null) {
byte[] signature = Files.readAllBytes(signatureFiles.sigAndCert.signatureFile);
CertPath certPath =
Expand Down

0 comments on commit aab02b1

Please sign in to comment.