-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move jq installation before the step to get provenance. (#3016)
The get_provenance script now requires jq but it was not installed until later.
- Loading branch information
1 parent
5d700be
commit 541949f
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,12 @@ PROVENANCE_PATH=$1 | |
BUILDER_ID=https://cloudbuild.googleapis.com/[email protected] | ||
SOURCE_URI=github.com/flutter/cocoon | ||
|
||
# Download the jq binary in order to obtain the artifact registry url from the | ||
# docker image provenance. | ||
echo "Installing jq using apt..." | ||
apt update && apt install jq -y | ||
|
||
# Download slsa-verifier in order to validate the docker image provenance. | ||
# This takes the version of slsa-verifier defined in tooling/go.mod. | ||
echo "Installing slsa-verifier using go..." | ||
mkdir -p tooling | ||
pushd tooling | ||
go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier | ||
go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier@v2.4.0 | ||
popd | ||
|
||
FULLY_QUALIFIED_DIGEST=$(cat $PROVENANCE_PATH | | ||
|