Skip to content

Commit

Permalink
fix: owlbot-cli image sha to be locked (hermetic) (#2252)
Browse files Browse the repository at this point in the history
* fix: owlbot-cli image sha to be locked (hermetic)

* add date to owlbot-cli image file
  • Loading branch information
diegomarquezp authored Nov 28, 2023
1 parent 964a649 commit 6c4c236
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions library_generation/configuration/owlbot-cli-sha
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# owlbot-cli image from 20231010
sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409
4 changes: 3 additions & 1 deletion library_generation/postprocess_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ git init
git commit --allow-empty -m 'empty commit'
popd # pre_processed_libs_folder

owlbot_cli_image_sha=$(cat "${scripts_root}/configuration/owlbot-cli-sha" | grep "sha256")

docker run --rm \
--user $(id -u):$(id -g) \
-v "${workspace}:/repo" \
-v "${pre_processed_libs_folder}:/pre-processed-libraries" \
-w /repo \
--env HOME=/tmp \
gcr.io/cloud-devrel-public-resources/owlbot-cli:latest \
gcr.io/cloud-devrel-public-resources/owlbot-cli@"${owlbot_cli_image_sha}" \
copy-code \
--source-repo-commit-hash=none \
--source-repo=/pre-processed-libraries \
Expand Down

0 comments on commit 6c4c236

Please sign in to comment.