docs icon indicating copy to clipboard operation
docs copied to clipboard

The workflow named "cleanup caches by a branch" is not working as expected

Open Mogyuchi opened this issue 1 year ago • 4 comments
trafficstars

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.

Mogyuchi avatar Jan 29 '24 09:01 Mogyuchi

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.

welcome[bot] avatar Jan 29 '24 09:01 welcome[bot]

@Mogyuchi Thank you for opening an issue and linking it to your PR! ✨

nguyenalex836 avatar Jan 29 '24 23:01 nguyenalex836

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

corneliusroemer avatar Feb 12 '24 15:02 corneliusroemer

Duplicate of #

12Lu-uchiha avatar Feb 13 '24 06:02 12Lu-uchiha

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.

github-actions[bot] avatar Apr 15 '24 16:04 github-actions[bot]