andresz1 / size-limit-action

Compare the real cost to run your JS app or lib to keep good performance in every pull request
ISC License
449 stars 83 forks source link

Add `write` permission to the action #107

Closed devethan closed 11 months ago

devethan commented 1 year ago

After run a workflow, the action couldn't create a comment on the PR remaining a log with below message

Error creating comment. This can happen for PR's originating from a fork without write permissions.

It can be fixed by follow https://github.com/andresz1/size-limit-action/issues/104#issuecomment-1534099984

permissions:
  pull-requests: write

The documentation has not yet been updated to reflect this, which is confusing for many new users. Hopefully they will be updated soon.