Skip to content

Commit

Permalink
Trust git repositories in builder
Browse files Browse the repository at this point in the history
With the Alpine 3.20 upgrade git no longer by default trust git
repositories. This leads to a warning by Dockers BuildKit:

WARNING: current commit information was not captured by the build: failed to read current commit information with git rev-parse --is-inside-work-tree

Avoid this warning by trusting all git repositories like before the
Alpine 3.20 upgrade.

It probably would be better if we can simply trust only the passed data
directory, but the git repository might be higher up then the passed
path. Also the data directory could be something other than /data.
  • Loading branch information
agners committed Aug 12, 2024
1 parent 1eac7a4 commit e9ecc02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN \
else \
exit 1; \
fi \
&& git config --global --add safe.directory "*" \
&& chmod +x /usr/bin/yq \
&& chmod +x /usr/bin/cosign

Expand Down

0 comments on commit e9ecc02

Please sign in to comment.