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

Can a Personal Access Token be used in place of github.token? #12

Open
shadoath opened this issue Apr 27, 2021 · 2 comments
Open

Can a Personal Access Token be used in place of github.token? #12

shadoath opened this issue Apr 27, 2021 · 2 comments

Comments

@shadoath
Copy link

Found out that workflows by GitHub actions using a GitHub token don't trigger other workflows (due to concern of infinite loop).

Is it as simple as swapping to my PAT to avoid this issue?

@shadoath
Copy link
Author

shadoath commented Apr 27, 2021

When you use the repository's GITHUB_TOKEN to perform tasks on behalf of the GitHub Actions app, events triggered by the GITHUB_TOKEN will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs. For example, if a workflow run pushes code using the repository's GITHUB_TOKEN, a new workflow will not run even when the repository contains a workflow configured to run when push events occur.

Link

@CWSites
Copy link

CWSites commented Dec 10, 2021

If I remember correctly it also has to do with permissions, your regular github.token has read only permissions, you need to setup a REPO_ACCESS_TOKEN which has write permissions for an action like this.

https://docs.github.com/en/actions/security-guides/automatic-token-authentication

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

2 participants