From e9ecc0287f455db091bb31bb9aa2b6f231f111d9 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 12 Aug 2024 23:59:45 +0200 Subject: [PATCH] Trust git repositories in builder 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. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 1736a2a..a972fa3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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