Skip to content

Commit

Permalink
Mark the source directory as safe
Browse files Browse the repository at this point in the history
See
https://github.blog/2022-04-12-git-security-vulnerability-announced/
for context. git now refuses to handle repositories which don't belong
to the current user by default; such repositories need to be
explicitly marked as safe, in the global configuration for the current
user.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt committed May 6, 2022
1 parent 3218edf commit 822e47a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ ENV DAPPER_OUTPUT=${DAPPER_SOURCE}/output

WORKDIR ${DAPPER_SOURCE}

RUN git config --global --add safe.directory ${DAPPER_SOURCE}

ENTRYPOINT ["/opt/shipyard/scripts/entry"]
CMD ["sh"]
2 changes: 2 additions & 0 deletions Dockerfile.linting
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ ENV DAPPER_OUTPUT=${DAPPER_SOURCE}/output

WORKDIR ${DAPPER_SOURCE}

RUN git config --global --add safe.directory ${DAPPER_SOURCE}

ENTRYPOINT ["/opt/shipyard/scripts/entry"]
CMD ["sh"]

0 comments on commit 822e47a

Please sign in to comment.