docs
docs copied to clipboard
The workflow named "cleanup caches by a branch" is not working as expected
Code of Conduct
- [X] I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows
What part(s) of the article would you like to see updated?
Modify the workflow example in Managing caches > Force deleting cache entries
Why:
When triggered by the pull_request event, the GITHUB_TOKEN does not have permission to delete the cache of the base repository in a cross-repository pull request. This results in the error Error: Resource not accessible by integration.
Additional information
This always happens for cross-repository pull requests.
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
@Mogyuchi Thank you for opening an issue and linking it to your PR! ✨
I can confirm that I ran into this exact issue myself, so this should be addressed urgently.
At the same time, it might make sense to replace gh-actions-cache with gh cache as was started in https://github.com/github/docs/pull/28850
Duplicate of #
A stale label has been added to this issue because it has been open for 60 days with no activity. To keep this issue open, add a comment within 3 days.