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.
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_requestevent, theGITHUB_TOKENdoes not have permission to delete the cache of the base repository in a cross-repository pull request. This results in the errorError: Resource not accessible by integration.Additional information
This always happens for cross-repository pull requests.