workflows: Pacify git's permission check in release workflow

"fatal: detected dubious ownership in repository at..."
This commit is contained in:
Justin Stephenson 2023-05-19 12:18:24 -04:00 committed by GitHub
parent 26e4c3e5dd
commit e3a8c9d17c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)