Closed whatwewant closed 2 years ago
git config user.name XXX
git log | head -n 10
Why: https://github.blog/2022-04-12-git-security-vulnerability-announced/
related: https://github.com/actions/checkout/issues/760
How to fix:
run command as tips:
git config --global --add safe.directory $PWD
or GitHub Action config:
- name: Fix Git Permissions run: git config --global --add safe.directory $PWD
What is it ?
git config user.name XXX
=> cause "fatal: not in a git directory"git log | head -n 10
=> cause "fatal: unsafe repository (REPO is owned by someone else)"