-
Notifications
You must be signed in to change notification settings - Fork 61.6k
fix(cache): Add write permissions to clear cache workflow #37953
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds the required write permissions to the cache cleanup workflow to resolve the "Resource not accessible by integration" error when running the gh cache list command.
- Updated the cleanup job in the caching dependencies workflow file to include the "actions: write" permission.
- Enhances workflow stability by ensuring necessary permissions are set.
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksThe table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
Thanks for opening a PR! I'll get this triaged for review. |
Thanks for opening a pull request! We've triaged this issue for technical review by a subject matter expert 👀 |
Why:
The
gh cache list
call needs thewrite
actions permission, otherwise it fails withError: Resource not accessible by integration.
.It was reported here: actions/gh-actions-cache#85
What's being changed (if available, include any code snippets, screenshots, or gifs):
Added the
write
actions permission to the cleanup cache workflow.Check off the following: