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

Document that actions: read/write permissions are required to use gh-actions-cache in gh actions CI #85

Open
corneliusroemer opened this issue Feb 12, 2024 · 0 comments

Comments

@corneliusroemer
Copy link

I tried to use gh-actions-cache in a Github action.

It failed with:

Error: Resource not accessible by integration.

It's not immediately clear which permission I needed to give to the action so it works.

After consulting the docs at https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-actions I figured out, I needed to give:

permissions:
  actions: write

but this wasn't documented anywhere explicitly.

Would be great to add this to the README.

garybuhrmaster added a commit to garybuhrmaster/mythtv that referenced this issue Mar 23, 2024
The github workflow to clean up PR caches failed with:
  Error: Resource not accessible by integration

The issue is that the gh-actions-cleanup requires the
permission to delete caches, per:
actions/gh-actions-cache#85
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

1 participant