Skip to content

Commit

Permalink
fix: git safe repo directory for docker image
Browse files Browse the repository at this point in the history
Fixes an issue introduced with a recent git update
(https://github.blog/2022-04-12-git-security-vulnerability-announced/)
with a common workaround (actions/checkout#762,
https://stackoverflow.com/questions/71901632/fatal-error-unsafe-repository-home-repon-is-owned-by-someone-else,
actions/checkout#760),
by marking the /data directory inside the container as safe for git
during the container build.
  • Loading branch information
liketechnik committed Jul 5, 2022
1 parent 342841e commit 7c2b552
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/alpine-pandoc-hugo/Dockerfile
Expand Up @@ -7,4 +7,6 @@ RUN apk --no-cache add ruby git
COPY delete-script.rb /opt/delete-script.rb
RUN chmod +x /opt/delete-script.rb

RUN git config --global --add safe.directory /data

ENTRYPOINT ["sh", "-c"]

0 comments on commit 7c2b552

Please sign in to comment.