Bug: Permission is missing in cache delete example by kotokaze · Pull Request #1123 · actions/cache (original) (raw)
kotokaze commented
Copy link Copy Markdown
Contributor
Add permission to delete cache with gh-actions-cache
Description
According to the API documentation, actions:write permission is at least required.
( Referred to https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id )
Motivation and Context
My action based on the example has failed to delete with ERROR: Resource not accessible by integration.
Log: https://github.com/kotokaze/texlive/actions/runs/4272709474/jobs/7438088882
How Has This Been Tested?
The action deleted caches as expected by adding actions:write permission
Log: https://github.com/kotokaze/texlive/actions/runs/4273085511/jobs/7438755085
Types of changes
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to change)
- Documentation (add or update README or docs)
Checklist:
- My code follows the code style of this project.
- My change requires a change to the documentation.
- I have updated the documentation accordingly.
- I have read the CONTRIBUTING document.
- I have added tests to cover my changes.
- All new and existing tests passed.
slanton-a reacted with thumbs up emoji