Control permissions does not allow adding workflow files #26583
-
With excitement I read the latest addition to control the permissions granted to the I do have a workflow that adds another workflow file to a repository. Up until now, I use a custom Personal Access Token with
but it turns out it doesn’t work.
I wonder if this is expected behavior, given that I set |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @stefanbuck! I believe this is expected behaviour for this permission. Changing these permissions allows you to scope how much you can interact with the API of the underlying GitHub App, but this app doesn’t have the scope required to update workflow files without the If you need your workflow to be able to create or modify workflow files then you’ll need to continue to use a PAT that has the |
Beta Was this translation helpful? Give feedback.
Hi @stefanbuck! I believe this is expected behaviour for this permission. Changing these permissions allows you to scope how much you can interact with the API of the underlying GitHub App, but this app doesn’t have the scope required to update workflow files without the
workflow
permission, which isn’t currently configurable here. The actions permission currently allows you to interact with various aspects of workflows on your repository, but doesn’t allow you to update workflow files.If you need your workflow to be able to create or modify workflow files then you’ll need to continue to use a PAT that has the
workflow
permision.