Workaround Github actions dubious permissions error

"fatal: detected dubious ownership in repository at..."
This commit is contained in:
Justin Stephenson 2023-05-17 11:29:15 -04:00
parent fbc0a542f7
commit c250b496d8

View file

@ -22,6 +22,10 @@ jobs:
with:
fetch-depth: 0
# https://github.blog/2022-04-12-git-security-vulnerability-announced/
- name: Pacify git's permission check
run: git config --global --add safe.directory /__w/
- name: Workaround for https://github.com/actions/checkout/pull/697
run: git fetch --force origin $(git describe --tags):refs/tags/$(git describe --tags)