You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Access to main branch cache form feature branch #1103
I'm trying to speed up builds on feature branches, by pulling cache form main but I'm not able to achieve that. Following Github documentation it should be possible:
Access restrictions provide cache isolation and security by creating a logical boundary between different branches or tags. Workflow runs can restore caches created in either the current branch or the default branch (usually main).
I was doing some variation of that solution, as setting only the same scope for both branches or removing scope form main branch, but nothing worked for me.
Do you have any suggestion? Thanks in advance.
Reacted by José Manuel, Adeel Khan, Darian Morrison, Jerome Paul and idan-rahamim-lendbuzz
Access restrictions provide cache isolation and security by creating a logical boundary between different branches or tags. Workflow runs can restore caches created in either the current branch or the default branch (usually main).
I don't think it means you have access to default branch cache from a feature branch.
Activity
[-]Access to cache from main branch[/-][+]Access to main branch cache form feature branch[/+]crazy-max commentedon Jun 12, 2024
I don't think it means you have access to default branch cache from a feature branch.
You can check this yourself by looking at the "GitHub Actions runtime token ACs" section in the action logs: https://github.com/docker/build-push-action/actions/runs/9478782186/job/26115912211#step:4:15
In this case the PR #1667 has read access to
refs/heads/mastercache.rrabenda commentedon Jun 18, 2024
Hello,
I checked it and token have read access to main branch:
So I think this is not a problem
idan-rahamim-lendbuzz commentedon Aug 17, 2025
Hi
Is there any update on this?