label-sync
label-sync copied to clipboard
Clarify required permissions
Getting this error in my new repo. https://github.com/danielwerg/r6data/actions/runs/4244636478
Not sure what changed because I'm using same exact workflow I have in r6api.js repo and it worked just fine 8 months ago (see: https://github.com/danielwerg/r6api.js/actions/runs/2579219273)
Am I missing something?
I just had the same issue in one of my repos It's caused by the fact that now new repositories use the restricted access permissions by default. You need to either set the access to permissive in the Actions settings of your repo, or, add this permission to the workflow file:
permissions:
issues: write
I'll update the examples in the docs accordingly
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@EndBug Same issue again https://github.com/danielwerg/r6api.js/actions/runs/5609649603
@danielwerg I can't reproduce the issue on another repo 👀 https://github.com/EndBug/labels-test/actions/runs/5609905279/workflow
I've also tried re-running on r6api.js but it still fails...
What are your settings in https://github.com/danielwerg/r6api.js/settings/actions? Maybe you have disabled something?
@EndBug
Doesn't workflow file with
permissions:
issues: write
suppose to overwrite that?
@danielwerg No that part is fine, what about the first item of the page, "Actions permissions"?
@EndBug
Hey @danielwerg so honestly I'm super confused, so I've escalated this to the GitHub community discussions, maybe someone else has a better understanding of the issue. In the meanwhile, I'll reopen this issue in the repo
https://github.com/orgs/community/discussions/61510
Thanks for reporting 💖