summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-03-14 18:32:42 -0400
committerNed Batchelder <ned@nedbatchelder.com>2023-03-14 18:32:42 -0400
commite47f35462dc7e8b28d2fa94de65a1bf34608d4c8 (patch)
treec6015ec583f73af03de3a3cdc30772f06e469a68
parentdc83ac55bd58a0531b71b851ac0a7d217bfc1f83 (diff)
downloadpython-coveragepy-git-e47f35462dc7e8b28d2fa94de65a1bf34608d4c8.tar.gz
build: will this work on fork pr's?
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 ```
-rw-r--r--.github/workflows/dependency-review.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml
index d10f1622..943a4b57 100644
--- a/.github/workflows/dependency-review.yml
+++ b/.github/workflows/dependency-review.yml
@@ -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 }}