label-sync icon indicating copy to clipboard operation
label-sync copied to clipboard

Clarify required permissions

Open danielwerg opened this issue 2 years ago • 8 comments

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?

danielwerg avatar Feb 22 '23 16:02 danielwerg

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

EndBug avatar Feb 23 '23 16:02 EndBug

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.

github-actions[bot] avatar Mar 16 '23 05:03 github-actions[bot]

@EndBug Same issue again https://github.com/danielwerg/r6api.js/actions/runs/5609649603

danielwerg avatar Jul 20 '23 10:07 danielwerg

@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 avatar Jul 20 '23 10:07 EndBug

@EndBug

Doesn't workflow file with

permissions:
  issues: write

suppose to overwrite that?

danielwerg avatar Jul 20 '23 11:07 danielwerg

@danielwerg No that part is fine, what about the first item of the page, "Actions permissions"?

EndBug avatar Jul 20 '23 14:07 EndBug

@EndBug

danielwerg avatar Jul 20 '23 14:07 danielwerg

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 💖

EndBug avatar Jul 22 '23 09:07 EndBug