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
workflows permission in order to achieve that. I was hoping that this addition would allow me to get rid of this PAT by using the following permissions.
permissions: actions: write contents: write
but it turns out it doesn’t work.
[remote rejected] temp-branch -> main (refusing to allow a GitHub App to create or update workflow `.github/workflows/runner-4.yml` without `workflows` permission) error: failed to push some refs to 'https://github.com/....'
I wonder if this is expected behavior, given that I set
write or do I misinterpret this permission?