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
The workflow named "cleanup caches by a branch" is not working as expected #31321
Comments
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 |
This comment was marked as spam.
This comment was marked as spam.
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. |
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, theGITHUB_TOKEN
does 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.
The text was updated successfully, but these errors were encountered: