add test for predicate type filtering
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
13dafefcb5
commit
f43ec0079b
1 changed files with 6 additions and 0 deletions
|
|
@ -14,3 +14,9 @@ if ! $ghBuildPath attestation verify "$ghCLIArtifact" --digest-alg=sha256 --owne
|
|||
echo "Failed to verify"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Try to verify when specifying a predicate type that does not match the attestation
|
||||
if $ghBuildPath attestation verify "$ghCLIArtifact" --digest-alg=sha256 --owner=cli --predicate-type=my-custom-predicate-type; then
|
||||
echo "Verification should have failed"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue