From e47f35462dc7e8b28d2fa94de65a1bf34608d4c8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 14 Mar 2023 18:32:42 -0400 Subject: 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 ``` --- .github/workflows/dependency-review.yml | 4 ++-- 1 file 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 }} -- cgit v1.2.1