zcorky / zodash

Zero's Standard Lib or Doreamon
MIT License
14 stars 2 forks source link

fatal: not in a git directory #37

Closed whatwewant closed 2 years ago

whatwewant commented 2 years ago

What is it ?

whatwewant commented 2 years ago

Why: https://github.blog/2022-04-12-git-security-vulnerability-announced/

whatwewant commented 2 years ago

related: https://github.com/actions/checkout/issues/760

whatwewant commented 2 years ago

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