Skip to content

Commit

Permalink
fix: prevent git dubious ownership errors (#56)
Browse files Browse the repository at this point in the history
This is needed to prevent newer versions of git raising dubious ownership
errors if the repo directory or .git sub-directory are not owned by the
current user.

- https://medium.com/@thecodinganalyst/git-detect-dubious-ownership-in-repository-e7f33037a8f
- actions/runner-images#6775 (comment)

Signed-off-by: Weston Steimel <[email protected]>
  • Loading branch information
westonsteimel authored Jan 31, 2023
1 parent 5642341 commit 9a63e3a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ RUN apt update && apt install -y git && rm -rf /var/lib/apt/lists/*

COPY dist dist
RUN pip install ./dist/vunnel-*.whl

# This is needed to prevent newer versions of git raising dubious ownership
# errors if the repo directory or .git sub-directory are not owned by the
# current user.
#
# https://medium.com/@thecodinganalyst/git-detect-dubious-ownership-in-repository-e7f33037a8f
# https://github.com/actions/runner-images/issues/6775#issuecomment-1410270956
RUN git config --system safe.directory '*'

ENTRYPOINT ["vunnel"]

LABEL org.opencontainers.image.source https://github.com/anchore/vunnel
Expand Down

0 comments on commit 9a63e3a

Please sign in to comment.