fix: Fixed git fatal error in Dockerfile (#372)

This commit is contained in:
Maksym Vlasov 2022-04-20 15:10:59 +03:00 committed by GitHub
commit c3f8dd40e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -182,7 +182,10 @@ RUN if [ "$(grep -o '^terraform-docs SKIPPED$' /usr/bin/tools_versions_info)" =
; fi && \
if [ "$(grep -o '^infracost SKIPPED$' /usr/bin/tools_versions_info)" = "" ]; then \
apk add --no-cache jq=~1 \
; fi
; fi && \
# Fix git runtime fatal:
# unsafe repository ('/lint' is owned by someone else)
git config --global --add safe.directory /lint
ENV PRE_COMMIT_COLOR=${PRE_COMMIT_COLOR:-always}