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
Cache fails for Pull Request re-runs with "No scopes with read permission were found on the request." #208
[warning]No scopes with read permission were found on the request.
And the build runs without cache.
Please note that I'm talking about pull request build triggered when pushing a commit (or opening the PR). So this issue is not explained by #129.
Reacted by Daniel White, Victor, Binh Nguyen, Harvey Rogers, Colin White, Manan Vaghasiya, Anders Fredrik Kiær, Shaun Jackman, Jonas Strassel, Andy and 6 more
Reacted by Lukas
Reacted by Lukas, Michał Pietraszko and Marcin Kłopotek
Run actions/cache@v1 0s
[warning]No scopes with read permission were found on the request.
Run actions/cache@v1
[warning]No scopes with read permission were found on the request.
Run actions/cache@v1 1s
[warning]No scopes with read permission were found on the request.
Run actions/cache@v1
[warning]No scopes with read permission were found on the request.
Hi! I do have the same error message, however it also happens sometimes when I run a workflow for the first time, not necessarily after a re-run. Unfortunately, it looks like this issue happens quite randomly...
I cannot give a link to a run since it's from a private repo, but here is one of the four jobs of the workflow. When the cache issue happens, it happens for all jobs of the workflow. Workflow is triggered on pull_request events.
And after some thought, I'm not 100% sure that the issue happened without a rerun 🤔 I'll let you know if it happens again
[warning]No scopes with read permission were found on the request.
…
Post job cleanup.
[warning]No scopes with write permission were found on the request.
👋 Hey all, thank you for your patience. Pull Request re-runs should now have the correct GitHub Ref and work with this action.
Reacted by Victor, Albert Still, Ahsan Farooq and Hiroshi Muraoka
Reacted by Victor, Mikhail Zabaluev, Riccardo Porreca, Satoru Abe, Jonas Strassel, Jonathan Cornaz, Shaun Jackman, Albert Still, Jesper Kirkegaard Bendtsen and Ahsan Farooq
Reacted by Shaun Jackman, Albert Still and Ahsan Farooq
Activity
joshmgross commentedon Mar 6, 2020
Can you provide an example of when this occurs?
Do you see it on the first PR run, or when re-running a PR?
jcornaz commentedon Mar 6, 2020
Not really sorry. I am not allowed to share that sources. I'll try to create a simple reproducer if I can.
If I look at the latest occurrence of the problem, it was when pushing a new commit to a PR already built.
jcornaz commentedon Mar 6, 2020
In the hope it helps, here is more information:
action/checkoutto build theHEADof the PR branch (not the merge commit).matrixstrategies. That causes ~ 20 concurrent fetches of the same cache.bxq2011hust commentedon Mar 8, 2020
I have the same problem.
Sometimes a pr runs without cache and GitHub Action output.
[warning]No scopes with read permission were found on the request.Today I meet the problem after I cancel and rerun. Here is the link
https://github.com/FISCO-BCOS/FISCO-BCOS/pull/1402/checks?check_run_id=493039648
joshmgross commentedon Mar 9, 2020
@bxq2011hust Thanks! I believe there's a bug that re-running a PR will use a different ref (https://github.community/t5/GitHub-Actions/GITHUB-REF-is-inconsistent/td-p/48129). This fails our validation as we currently only allow caching on PRs that use
refs/pulls/*type refs.@jcornaz can you confirm if all of these cache failures were from re-running a failed PR?
Raul6469 commentedon Mar 9, 2020
Hi! I do have the same error message, however it also happens sometimes when I run a workflow for the first time, not necessarily after a re-run. Unfortunately, it looks like this issue happens quite randomly...
joshmgross commentedon Mar 9, 2020
@Raul6469 could you provide a workflow file or an example run where this occurs?
Raul6469 commentedon Mar 10, 2020
I cannot give a link to a run since it's from a private repo, but here is one of the four jobs of the workflow. When the cache issue happens, it happens for all jobs of the workflow. Workflow is triggered on
pull_requestevents.And after some thought, I'm not 100% sure that the issue happened without a rerun 🤔 I'll let you know if it happens again
jcornaz commentedon Mar 10, 2020
@joshmgross I found a pull request that encountered this issue on the first build of the pull request.
So no, these cache failures don't happen only when re-running a failed PR.
joshmgross commentedon Mar 10, 2020
@jcornaz or @Raul6469, if you can give me the Run ID then I can look up the relevant info on my end.
You should see this value in the URL of a run. For example, the run https://github.com/actions/cache/actions/runs/45076896 has a Run ID of
45076896jcornaz commentedon Mar 10, 2020
@joshmgross, Here is the run id of the PR I mentioned encountering the issue on the first build: 489954217.
joshmgross commentedon Mar 10, 2020
@jcornaz Can you confirm that
489954217is the correct number? It's a little larger than I'd expectjcornaz commentedon Mar 10, 2020
Yes it is correct. if I go to https://github.com/REPO_OWNER/REPO/runs/489954217 i get the log of the concerned run.
sjackman commentedon Mar 30, 2020
I've also experienced this error.
@joshmgross See for example run ID 540544450
18 remaining items
ci: re-run Kube build if cache failed
joshmgross commentedon May 19, 2020
👋 Hey all, thank you for your patience. Pull Request re-runs should now have the correct GitHub Ref and work with this action.
ahsanfarooq3423 commentedon May 12, 2022
Thanks