Skip to content

Commit 6c4c236

Browse files
fix: owlbot-cli image sha to be locked (hermetic) (#2252)
* fix: owlbot-cli image sha to be locked (hermetic) * add date to owlbot-cli image file
1 parent 964a649 commit 6c4c236

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# owlbot-cli image from 20231010
2+
sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409

library_generation/postprocess_library.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ git init
7575
git commit --allow-empty -m 'empty commit'
7676
popd # pre_processed_libs_folder
7777

78+
owlbot_cli_image_sha=$(cat "${scripts_root}/configuration/owlbot-cli-sha" | grep "sha256")
79+
7880
docker run --rm \
7981
--user $(id -u):$(id -g) \
8082
-v "${workspace}:/repo" \
8183
-v "${pre_processed_libs_folder}:/pre-processed-libraries" \
8284
-w /repo \
8385
--env HOME=/tmp \
84-
gcr.io/cloud-devrel-public-resources/owlbot-cli:latest \
86+
gcr.io/cloud-devrel-public-resources/owlbot-cli@"${owlbot_cli_image_sha}" \
8587
copy-code \
8688
--source-repo-commit-hash=none \
8789
--source-repo=/pre-processed-libraries \

0 commit comments

Comments
 (0)