Skip to content

Commit

Permalink
Fix a comment about the permission issue of git
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Apr 15, 2022
1 parent 9c8598a commit 9b09e3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ FROM hashicorp/terraform:$TERRAFORM_VERSION AS terraform
FROM golang:1.17.8-alpine3.15
RUN apk --no-cache add make git bash curl jq

# Fix a permission issue for CVE-2022-24765
# A workaround for a permission issue of git.
# Since UIDs are different between host and container,
# the .git directory is untrusted by default.
# We need to allow it explicitly.
# https://github.com/actions/checkout/issues/760
RUN git config --global --add safe.directory /work

Expand Down

0 comments on commit 9b09e3c

Please sign in to comment.