Description:
Using the default recommended permissions, I sometimes get
Error when updating this pull request: Insufficient permissions to update the state_reason.
Permissions used:
permissions:
actions: write
contents: write
issues: write
pull-requests: write
Action version:
10.1.1
Platform:
Runner type:
Repro steps:
Not sure, it only happens on a small number of PRs.
Expected behavior:
There should be no error
Actual behavior:
There's the error in logs and summary of the action.
Although, it does not crash the workflow, and does not prevent the PR from being closed / branch from being deleted.
It's just a small nuisance.
Example logs:
