Skip to content

Sporadically, the workflow errors with Insufficient permissions to update the state_reason. #1321

@jakub-g

Description

@jakub-g

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:

  • Ubuntu

Runner type:

  • Hosted

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:

Image Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions