"No scope" warning for pull request closed events
See original GitHub issueI get the warning No scopes with read permission were found on the request.
if I setup my workflow for triggering on pull request: close.
If I change the trigger to push, it works.
Is the problem that the head_branch of the Pull Request can’t read/write to the master’s cache?
An example config
on:
pull_request:
types:
- closed
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
fetch-depth: 1
- name: Cache node modules
id: cache_node_modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package.json') }}
for the above config the cache is never used… I get the below warning
If I tweak the workflow to trigger on branch push, all is well
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
fetch-depth: 1
- name: Cache node modules
id: cache_node_modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package.json') }}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Events that trigger workflows - GitHub Docs
To run a workflow when a pull request merges, use the pull_request closed event type along with a conditional that checks the merged...
Read more >GitHub Actions Security Best Practices [cheat sheet included]
Actions are triggered by GitHub events (a pull request is submitted, an issue opened, a PR is merged, etc…) and can execute pretty...
Read more >Repository Hooks and Merge Checks Guide
Scopes determine which levels a hook can be enabled and configured at, although all hooks only fire for repository level events (ref changes...
Read more >Merge requests - GitLab Docs
Following the comment box, select Close merge request. GitLab closes the merge request, but preserves records of the merge request, its comments, and...
Read more >Dynamic Admission Control | Kubernetes
The webhook handles the AdmissionReview request sent by the API servers, and sends back its ... means that there are no scope restrictions....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok. Thanks @joshmgross.
So if all
pull_request
events are supposed to work, there is a problem. I opened an issue for it: #208.The issue of pull request re-runs has been fixed, see #208 for details.
With V2 of this action, all events with a GitHub ref are supported, so this issue should now be fixed. See https://github.com/actions/cache#whats-new for more info.