workflows: Pacify git's permission check in release workflow

Similar to https://github.com/cockpit-project/bots/pull/4224
This commit is contained in:
Katerina Koukiou 2023-01-11 18:25:44 +01:00 committed by GitHub
parent 99bfebd6cb
commit abbde51fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,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/cockpit/cockpit
- name: Workaround for https://github.com/actions/checkout/pull/697
run: git fetch --force origin $(git describe --tags):refs/tags/$(git describe --tags)