Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions token #535

Open
donniean opened this issue Aug 1, 2024 · 1 comment
Open

GitHub Actions token #535

donniean opened this issue Aug 1, 2024 · 1 comment
Assignees

Comments

@donniean
Copy link
Owner

donniean commented Aug 1, 2024

最先开始 .github/workflows/dependencies.bump.yml.github/workflows/pull-requests.auto-update.yml 等一些 GitHub Actions 使用的 token 是 GITHUB_TOKEN

这样 git commits 的 author 就是 github-actions[bot] ,但是会导致一个问题一些 checks 卡住,一只显示 Expected — Waiting for status to be reported ,无法合并。

CleanShot 2024-08-01 at 17 49 02@2x


所以目前的 token 用的是 PAT (Personal Access Tokens) ,这样 checks 可以正常执行,但是产生了新问题: git commits 的 author 是用户,而不是 github-actions[bot]


目标是既可以正常合并,git commits 的 author 又是 github-actions[bot]


参考 https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs

@donniean donniean changed the title GitHub Actions GH_TOKEN GitHub Actions to ke m Aug 1, 2024
@donniean donniean changed the title GitHub Actions to ke m GitHub Actions to token Aug 1, 2024
@donniean
Copy link
Owner Author

donniean commented Aug 1, 2024

另外 .github/workflows/pull-requests.auto-merge.yml 中的 if 也会受影响。

#537

@donniean donniean changed the title GitHub Actions to token GitHub Actions token Aug 1, 2024
@donniean donniean self-assigned this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant