如果推送的文件包含 GitHub Actions .yml 文件。由于 GitHub Actions 的 .yml 文件是 u......
由于使用 KurocoFront 进行部署时使用了 GitHub Actions 的 .yml 文件,因此在以下情况下您将收到错误。
! [remote rejected] main -> main (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/build.yml` without `workflow` scope)error: failed to push some refs to 'https://github.com/GitHub
如果您看到上述错误消息,请验证以下内容。
单击 GitHub 帐户中的[设置]。
在左侧边栏菜单中,单击【开发者设置】。
选择[个人访问令牌]。
编辑您当前的个人访问令牌。
启用“工作流程”选项。
然后,单击屏幕底部的[更新令牌]以保存这些设置。
现在您应该能够推送到您的存储库而不会收到任何错误。