labeler icon indicating copy to clipboard operation
labeler copied to clipboard

docs: Update document to include issues permission

Open metarsit opened this issue 7 months ago • 4 comments

Description:

Error: HttpError: You do not have permission to create labels on this repository.: {"resource":"Repository","field":"label","code":"unauthorized"}
Error: You do not have permission to create labels on this repository.: {"resource":"Repository","field":"label","code":"unauthorized"}

Ran into this error, it seems that we have mission permission that's needed for the labeler to work.

Therefore, including the extra permission into the README.md so no one has to go through what I did. 😆

Related issue: https://github.com/orgs/community/discussions/156181

Check list:

  • [ ] Mark if documentation changes are required.
  • [ ] Mark if tests were added or updated to cover the changes.

metarsit avatar May 01 '25 11:05 metarsit

Yeah, I ran into the same thing, but odd that you need issue permission to write to write labels to a PR. furthermore, I have two identical repositories, with seemingly identical workflows, but the latest repository fails, but the older one does not. All settings are checked, and all tokens are verified:

works: https://github.com/phun-ky/typeof/actions/runs/14731948751 does not work: https://github.com/phun-ky/eslint-config/actions/runs/14795721253

phun-ky avatar May 02 '25 13:05 phun-ky

I have experienced the same thing, but even with the issues permission it does not work for me: https://github.com/deppenpfostierung/bicycle-led-software/actions/runs/14823033959/job/41612578804

CommanderRedYT avatar May 04 '25 16:05 CommanderRedYT

Any input from the author on this?

phun-ky avatar May 13 '25 09:05 phun-ky

This resolved the permission issues for me!

McGeerDev avatar Jun 03 '25 19:06 McGeerDev

Thank you for your valuable contribution, especially the documentation and permissions improvements! We are closing this PR because a similar enhancement, including necessary documentation and error handling, was recently merged in #897. Please review the relevant information here: https://github.com/actions/labeler?tab=readme-ov-file#recommended-permissions . We encourage you to check the current repository state and open a new issue or PR for any further suggestions. Thank you again for your time and helping improve @actions/labeler. We look forward to your future contributions!

chiranjib-swain avatar Nov 21 '25 09:11 chiranjib-swain