mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-07 17:17:13 +00:00
* ci: add verifier e2e presubmit that runs CLI at main Signed-off-by: Asra Ali <asraa@google.com> Signed-off-by: Asra Ali <asraa@google.com>
20 lines
722 B
Bash
Executable File
20 lines
722 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Verify provenance authenticity with slsa-verifier at HEAD
|
|
|
|
|
|
cd __EXAMPLE_PACKAGE__
|
|
# shellcheck source=/dev/null
|
|
source "./.github/workflows/scripts/e2e-verify.common.sh"
|
|
|
|
# Set THIS_FILE to correspond with the artifact properties
|
|
export THIS_FILE=e2e.go.workflow_dispatch.main.config-noldflags.slsa3.yml
|
|
export BRANCH=main
|
|
|
|
# Set BINARY and PROVENANCE
|
|
cd -
|
|
export BINARY=__THIS_REPO__/cli/slsa-verifier/testdata/gha_go/v1.2.2/binary-linux-amd64-workflow_dispatch
|
|
export PROVENANCE=__THIS_REPO__/cli/slsa-verifier/testdata/gha_go/v1.2.2/binary-linux-amd64-workflow_dispatch.intoto.jsonl
|
|
|
|
GITHUB_REPOSITORY=slsa-framework/example-package verify_provenance_authenticity "./__THIS_REPO__/slsa-verifier" "HEAD"
|