Skip to content

Commit

Permalink
fix: Fixed git fatal error in Dockerfile (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov committed Apr 20, 2022
1 parent cee7608 commit c3f8dd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/.container-structure-test-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
schemaVersion: '2.0.0'
commandTests:
- name: "git"
command: "git"
args: ["--version"]
expectedOutput: ["^git version 2\\.[0-9]+\\.[0-9]+\\n$"]

- name: "pre-commit"
command: "pre-commit"
args: ["-V"]
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit c3f8dd4

Please sign in to comment.