Skip to content
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

Closed
1 task done
Mogyuchi opened this issue Jan 29, 2024 · 5 comments · May be fixed by #31322 or #31582
Closed
1 task done

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

Mogyuchi opened this issue Jan 29, 2024 · 5 comments · May be fixed by #31322 or #31582
Labels
actions This issue or pull request should be reviewed by the docs actions team content This issue or pull request belongs to the Docs Content team stale There is no recent activity on this issue or pull request

Comments

@Mogyuchi
Copy link

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 Mogyuchi added the content This issue or pull request belongs to the Docs Content team label Jan 29, 2024
Copy link

welcome bot commented Jan 29, 2024

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.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Jan 29, 2024
@nguyenalex836 nguyenalex836 added actions This issue or pull request should be reviewed by the docs actions team and removed triage Do not begin working on this issue until triaged by the team labels Jan 29, 2024
@nguyenalex836
Copy link
Contributor

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

@corneliusroemer
Copy link
Contributor

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 #28850

@12Lu-uchiha

This comment was marked as spam.

Copy link
Contributor

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 github-actions bot added the stale There is no recent activity on this issue or pull request label Apr 15, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actions This issue or pull request should be reviewed by the docs actions team content This issue or pull request belongs to the Docs Content team stale There is no recent activity on this issue or pull request
Projects
None yet
4 participants