fix command
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
1a7fa8e37f
commit
9b9ddcd1da
1 changed files with 4 additions and 2 deletions
|
|
@ -20,16 +20,18 @@ curl -s $packageURL -o $packageFile
|
|||
curl -s $attestationURL | jq '.attestations[1].bundle' > $attestationFile
|
||||
|
||||
# Verify the package with the --owner flag
|
||||
$ghVerifyBuildPath $packageFile -b $attestationFile --digest-alg=sha512 --owner=sigstore
|
||||
$ghBuildPath attestation verify $packageFile -b $attestationFile --digest-alg=sha512 --owner=sigstore
|
||||
if [ $? -ne 0 ]; then
|
||||
# cleanup test data
|
||||
echo "Failed to verify package with --owner flag"
|
||||
rm $packageFile $attestationFile
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$ghVerifyBuildPath $packageFile -b $attestationFile --digest-alg=sha512 --repo=sigstore-js
|
||||
$ghBuildPath attestation verify $packageFile -b $attestationFile --digest-alg=sha512 --repo=sigstore-js
|
||||
if [ $? -ne 0 ]; then
|
||||
# cleanup test data
|
||||
echo "Failed to verify package with --repo flag"
|
||||
rm $packageFile $attestationFile
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue