Skip to content

Instantly share code, notes, and snippets.

@sallyom
Last active May 9, 2022 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sallyom/9f828f46a6ade7a98eaefecd56190fa2 to your computer and use it in GitHub Desktop.
Save sallyom/9f828f46a6ade7a98eaefecd56190fa2 to your computer and use it in GitHub Desktop.
test script to run sigstore integration tests with skopeo's `make sigstore-testenv-up`
#!/bin/bash
### Run `make sigstore-testenv-up` from local checkout of containers/skopeo before running this script.
### This script must run from local checkout of sigstore/sigstore
set -ex
echo "running tests"
export VAULT_TOKEN=testtoken
export VAULT_ADDR=http://localhost:8200/
export AWS_ACCESS_KEY_ID=test
export AWS_SECRET_ACCESS_KEY=test
export AWS_REGION=us-east-1
export AWS_ENDPOINT=localhost:4566
export AWS_TLS_INSECURE_SKIP_VERIFY=1
export OIDC_ISSUER=http://127.0.0.1:5556/auth
export OIDC_ID=sigstore
go test -tags e2e -count=1 ./...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment