'/github/workspace' is owned by someone else

新手上路,请多包涵

yml执行github actions时报错如下:

fatal: unsafe repository ('/github/workspace' is owned by someone else

git版本: git version 2.24.3 (Apple Git-128)

尝试过以下指令均无效:

            # - name: 解决权限问题e
            #   run: git config --global --add safe.directory "*"
            # - name: 解决权限问题f
            #   run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
            # - name: 最新问题  
            #   run: git config --global --add safe.directory /github/workspace

好像从四月份开始这样的,求解决方案

阅读 1.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题