summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-04-21 13:53:35 -0500
committerJan Ekström <jeebjp@gmail.com>2022-04-21 22:14:27 +0300
commit9d133eb00b541eecf828a03a7da1c9ec502287ba (patch)
tree1ddd00bb3a264f8e2af05666e1802b45ead1df46 /.github/workflows
parentf75701b21902a2c0c7ef2cc476a2c6fcb9986c7b (diff)
downloadmpv-9d133eb00b541eecf828a03a7da1c9ec502287ba.tar.bz2
mpv-9d133eb00b541eecf828a03a7da1c9ec502287ba.tar.xz
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.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml2
1 files changed, 2 insertions, 0 deletions
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: |