Skip to content

Commit

Permalink
Fix codecov report generation by adding the workspace to git's safe d…
Browse files Browse the repository at this point in the history
…irectory (#56)

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Jun 1, 2022
1 parent 8e04ae6 commit 1f86f7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ if [ -n "$DOXYGEN_ENABLED" ] && ${DOXYGEN_ENABLED} ; then
apt -y install doxygen
fi

# Add the workspace as a safe directory in the global git config. This ensures that any
# even if the workspace is owned by another user, git commands still work.
# See https://github.com/actions/checkout/issues/760
git config --global --add safe.directory $GITHUB_WORKSPACE

SYSTEM_VERSION=`lsb_release -cs`

SOURCE_DEPENDENCIES="`pwd`/.github/ci/dependencies.yaml"
Expand Down

0 comments on commit 1f86f7b

Please sign in to comment.