0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

github/workflows: workaround git permissions error

Recently, git patched a CVE which makes it much more strict about
different users operating on directories they don't own. For us, this
causes breakage with version.sh and version.py since they both run a git
describe command to fetch the commit hash. Currently, this only affects
the tumbleweed container (likely because it was recently changed) and
thus the git describe command always errors out. Workaround this by just
explictly adding the mpv directory as a safe directory for git.
This commit is contained in:
Dudemanguy 2022-04-21 13:53:35 -05:00 committed by Jan Ekström
parent f75701b219
commit 9d133eb00b

View File

@ -127,6 +127,8 @@ jobs:
run: | run: |
./bootstrap.py ./bootstrap.py
zypper -n install meson zypper -n install meson
# workaround to avoid "fatal: unsafe repository" error
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Build with meson - name: Build with meson
run: | run: |