Skip to content

Commit

Permalink
Install jq in the verification script. (#3017)
Browse files Browse the repository at this point in the history
Turns out cloud build runs the scripts independently and installing on task does not make it available for the next one.

Bug: flutter/flutter#133376
  • Loading branch information
godofredoc authored Aug 29, 2023
1 parent 541949f commit d562027
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloud_build/verify_provenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ 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..."
Expand Down

0 comments on commit d562027

Please sign in to comment.