Workaround git permission check gh actions bug

This commit is contained in:
Justin Stephenson 2023-05-17 11:29:15 -04:00
parent 12ab19bb67
commit efba93ce98

View file

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