Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify required permissions #187

Open
danielwerg opened this issue Feb 22, 2023 · 8 comments · Fixed by #192
Open

Clarify required permissions #187

danielwerg opened this issue Feb 22, 2023 · 8 comments · Fixed by #192
Assignees
Labels
status: pinned Should not be labeled as stale type: bug Verified problems that need to be worked on type: docs Documentation changes

Comments

@danielwerg
Copy link
Contributor

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?

@EndBug
Copy link
Owner

EndBug commented Feb 23, 2023

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 EndBug added the type: docs Documentation changes label Feb 23, 2023
@EndBug EndBug changed the title 403 Resource not accessible by integration Document default token permissions Feb 23, 2023
@github-actions
Copy link

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 github-actions bot added the status: stale Inactive issues and PRs label Mar 16, 2023
@EndBug EndBug added status: pinned Should not be labeled as stale and removed status: stale Inactive issues and PRs labels Mar 16, 2023
@EndBug EndBug linked a pull request Mar 16, 2023 that will close this issue
@danielwerg
Copy link
Contributor Author

@EndBug
Copy link
Owner

EndBug commented Jul 20, 2023

@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?

@danielwerg
Copy link
Contributor Author

@EndBug

Doesn't workflow file with

permissions:
  issues: write

suppose to overwrite that?

@EndBug
Copy link
Owner

EndBug commented Jul 20, 2023

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

@danielwerg
Copy link
Contributor Author

@EndBug

@EndBug EndBug changed the title Document default token permissions Clarify required permissions Jul 22, 2023
@EndBug EndBug added the type: bug Verified problems that need to be worked on label Jul 22, 2023
@EndBug EndBug self-assigned this Jul 22, 2023
@EndBug
Copy link
Owner

EndBug commented Jul 22, 2023

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 EndBug reopened this Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pinned Should not be labeled as stale type: bug Verified problems that need to be worked on type: docs Documentation changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants