小编son*_*ony的帖子

拒绝允许 GitHub 应用程序创建或更新工作流程

我有一个 GitHub 操作,使用:

github_token: ${{ secrets.GITHUB_TOKEN }}
Run Code Online (Sandbox Code Playgroud)

当我运行它时,我得到:

  ! [remote rejected]     tmp_upstream/master -> master (refusing to allow a GitHub App to create or update workflow `.github/workflows/build-images-workflow-run.yml` without `workflows` permission)
error: failed to push some refs to '***github.com/myname/repo'
Run Code Online (Sandbox Code Playgroud)

https://docs.github.com/en/actions/reference/authentication-in-a-workflow解释说

GitHub 会自动创建一个 GITHUB_TOKEN 密钥以在您的工作流程中使用。您可以使用 GITHUB_TOKEN 在工作流运行中进行身份验证。

但我使用了工作流程,它似乎没有创建令牌。我去创建一个个人令牌,然后尝试使用名称保存它,GITHUB_TOKEN但它说该名称无效。我该如何解决这个问题?

个人代币

github github-actions

9
推荐指数
2
解决办法
1万
查看次数

标签 统计

github ×1

github-actions ×1