Skip to content

Workflows vs actions: which permission is correct? #26711

Answered by otter-computer
zkamvar asked this question in Actions
Discussion options

You must be logged in to vote

The permissions block for the GITHUB_TOKEN allows you to set the GitHub App permissions for the token. The actions permission only grants you some permissions for accessing Actions APIs, but not access to updating workflow files. This is to prevent cases of Actions triggering an infinite loop.

If you want to create a workflow that can update workflow files then you’ll need to provide a Personal Access Token as a secret that grants the workflow scope and use that in place of the provided token.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bplessis-swi
Comment options

@SvenStaehs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment