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

Which GitHub Actions workflow permissions are required? #614

Closed
glenthomas opened this issue Mar 17, 2023 · 2 comments
Closed

Which GitHub Actions workflow permissions are required? #614

glenthomas opened this issue Mar 17, 2023 · 2 comments

Comments

@glenthomas
Copy link

I see this error in my log when this action runs

Warning: Could not get the check suite: GraphqlError: Resource not accessible by integration

Which permission scopes do I need to add to the workflow for the GraphQL query to work?

@uittorio
Copy link

Hi @glenthomas , I've done some manual testing and actions, checks and contents are necessary in order to get jobs and steps metrics.

permissions:
  actions: read
  checks: read
  contents: read

For the maintainer of the library. Is it worth documenting which permissions are required somewhere in the docs?

@int128
Copy link
Owner

int128 commented Apr 2, 2023

I noticed this issue when I created a new repository recently.
It seems the default permissions has been changed to read-only.
https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/

I will update the doc.
Thank you for checking the required permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants