Skip to content

Commit b6d8c26

Browse files
Copilotneilime
andcommitted
Pin container-structure-test to v1.22.0 with checksum verification
Co-authored-by: neilime <[email protected]>
1 parent 2a54b69 commit b6d8c26

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,12 @@ jobs:
149149
password: ${{ secrets.oci-registry-password || github.token }}
150150

151151
- name: Install container-structure-test
152+
env:
153+
CST_VERSION: "1.22.0"
154+
CST_CHECKSUM: "57cde1abc7a9dda034b173c0812f537c20b8734c1efca069cc2570b5c596ad0d"
152155
run: |
153-
curl -LO https://github.com/GoogleContainerTools/container-structure-test/releases/latest/download/container-structure-test-linux-amd64
156+
curl -LO "https://github.com/GoogleContainerTools/container-structure-test/releases/download/v${CST_VERSION}/container-structure-test-linux-amd64"
157+
echo "${CST_CHECKSUM} container-structure-test-linux-amd64" | sha256sum -c -
154158
chmod +x container-structure-test-linux-amd64
155159
sudo mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test
156160

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ define run_tests
6565
docker run --rm \
6666
-v /var/run/docker.sock:/var/run/docker.sock \
6767
-v "$$IMAGE_DIR:/workspace" \
68-
gcr.io/gcp-runtimes/container-structure-test:latest \
68+
ghcr.io/googlecontainertools/container-structure-test:v1.22.0 \
6969
test --image "$$IMAGE_NAME:test" --config /workspace/container-structure-test.yaml
7070
endef
7171

0 commit comments

Comments
 (0)