Disable git check in testing script (#557)

* Disable git checks for dir ownership

* Document the vulnerabilities requiring the change

Co-authored-by: GHA <actions@github.com>
This commit is contained in:
Alejandro R Mosteo
2022-06-23 11:20:53 +02:00
committed by GitHub
parent ab2fca430f
commit 27bff3341a
+5
View File
@@ -9,6 +9,11 @@ set -o nounset
# Ensure all alr runs are non-interactive and able to output unexpected errors
alias alr="alr -d -n"
# Disable check for ownership that sometimes confuses docker-run git
# Also, Github is not vulnerable to iCVE-2022-24765/CVE-2022-24767, see
# https://github.blog/2022-04-12-git-security-vulnerability-announced/
git config --global --add safe.directory '*'
# See whats happening
git log --graph --decorate --pretty=oneline --abbrev-commit --all | head -30