Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #36 from laukik-hase/fix/git_add_wf_repo_to_safe_dir
Browse files Browse the repository at this point in the history
sync_approved_pr: Add git repo to safe dir list
  • Loading branch information
mahavirj committed Feb 3, 2023
2 parents 8ee763d + 271ca60 commit faeb63f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions github_pr_to_internal_pr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ RUN apt-get update && \
pip3 install --upgrade pip && \
pip3 install -r /tmp/requirements.txt

# Changing the ownership of the repository after checking out
# Error: fatal: detected dubious ownership in repository at '/github/workspace'
# To add an exception for this directory, call:
# git config --global --add safe.directory /github/workspace
Expand All @@ -22,7 +21,7 @@ RUN apt-get update && \
# - https://github.com/actions/runner/issues/2033
# - https://github.com/actions/checkout/issues/1048
# - https://github.com/actions/runner-images/issues/6775
RUN chown -R $(id -u):$(id -g) $PWD
RUN git config --system --add safe.directory /github/workspace

COPY github_pr_to_internal_pr.py /

Expand Down

0 comments on commit faeb63f

Please sign in to comment.