Is there an existing issue for this?
Current Behavior
The example does contain sample code for allowing the action to open up a Pull Request. However, it seems to not be working (anymore).
permissions:
contents: write
pull-requests: write
jobs:
updatecli:
[...]
In my test repository, using the "default" token available in the workflow, the action was allowed to create a new branch, but not a pull request.
ERROR: running actions failed: errors occurred while running actions:
* creating pull request: GitHub Actions is not permitted to create or approve pull requests
Expected Behavior
The example configuration should be usable "as is" and contain code that securely allows the action to open up pull requests.
If this is not possible, the README should explain how to do this, i.e. which permissions are needed or should be left out etc.
Anything else?
Kind Regards,
Johannes
Is there an existing issue for this?
Current Behavior
The example does contain sample code for allowing the action to open up a Pull Request. However, it seems to not be working (anymore).
In my test repository, using the "default" token available in the workflow, the action was allowed to create a new branch, but not a pull request.
Expected Behavior
The example configuration should be usable "as is" and contain code that securely allows the action to open up pull requests.
If this is not possible, the README should explain how to do this, i.e. which permissions are needed or should be left out etc.
Anything else?
Kind Regards,
Johannes