Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

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

Closed
corneliusroemer opened this issue Feb 12, 2024 · 1 comment

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
@joshmgross
Copy link
Member

👋 This extension is being deprecated in favor of the built-in gh cache functionality of the gh CLI.

#86

If you're experiencing this issue with gh cache, please file an issue in https://github.com/cli/cli.

@joshmgross joshmgross closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants