Skip to content

Commit

Permalink
build: will this work on fork pr's?
Browse files Browse the repository at this point in the history
With .ref, on a PR from a fork, I got:
```
Run actions/dependency-review-action@v3
  with:
    base-ref: master
    head-ref: xml_duplicate_fix
    repo-token: ***
    fail-on-severity: low
    fail-on-scopes: runtime
Error: Bad Request
```
  • Loading branch information
nedbat committed Mar 14, 2023
1 parent dc83ac5 commit e47f354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
with:
base-ref: ${{ github.event.pull_request.base.ref || 'master' }}
head-ref: ${{ github.event.pull_request.head.ref || github.ref }}
base-ref: ${{ github.event.pull_request.base.sha || 'master' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}

0 comments on commit e47f354

Please sign in to comment.