Skip to content

Commit

Permalink
Set git safe.directory in entrypoint.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmoguy committed Apr 8, 2023
1 parent cdc501d commit 128329c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ RUN apt-get update && \
jq \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& git config --global --add safe.directory '*' \
&& python3 -m venv /opt/venv \
&& /opt/venv/bin/pip --no-cache-dir --no-input install --upgrade --requirement /requirements.txt

Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ else
GITHUB_SHA="$(jq -r .pull_request.head.sha < "${GITHUB_EVENT_PATH}")"
fi

git config --global --add safe.directory "${GITHUB_WORKSPACE}"
git checkout --quiet "${DEFAULT_BRANCH}"
git checkout --quiet "${GITHUB_SHA}"

Expand Down

0 comments on commit 128329c

Please sign in to comment.