Skip to content

Commit

Permalink
Merge pull request #146 from smlx/fix-git-security
Browse files Browse the repository at this point in the history
fix: git security workaround
  • Loading branch information
smlx authored May 24, 2024
2 parents 6452b49 + 193c5e4 commit 3f7c369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
set -eu
# if the first argument to the script is "true", it will push a tag to the repository.
WRITE_TAG="$1"
# the runner workspace will be mounted here, and git complains otherwise
git config --global --add safe.directory /github/workspace
# if the ccv tag exists, just exit
if [ "$(git tag -l "$(ccv)")" ]; then
echo "new_tag=false" >>"$GITHUB_OUTPUT"
Expand Down

0 comments on commit 3f7c369

Please sign in to comment.