add gh attestation verify integration test for oci bundles
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
2b7c6f6a16
commit
006ed7b5b5
1 changed files with 14 additions and 0 deletions
14
test/integration/attestation-cmd/verify-oci-bundle.sh
Normal file
14
test/integration/attestation-cmd/verify-oci-bundle.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Get the root directory of the repository
|
||||
rootDir="$(git rev-parse --show-toplevel)"
|
||||
|
||||
ghBuildPath="$rootDir/bin/gh"
|
||||
|
||||
# Verify an OCI artifact with bundles stored on the GHCR OCI registry
|
||||
echo "Testing with package $sigstore02PackageFile and attestation $sigstore02AttestationFile"
|
||||
if ! $ghBuildPath attestation verify oci://ghcr.io/malancas/attest-demo:latest --owner=malancas --bundle-from-oci; then
|
||||
echo "Failed to verify oci://ghcr.io/malancas/attest-demo:latest with bundles from the GHCR OCI registry"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue