From 9d133eb00b541eecf828a03a7da1c9ec502287ba Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Thu, 21 Apr 2022 13:53:35 -0500 Subject: 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. --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42a5d21ad6..f2f2314461 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,6 +127,8 @@ jobs: run: | ./bootstrap.py zypper -n install meson + # workaround to avoid "fatal: unsafe repository" error + git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Build with meson run: | -- cgit v1.2.3