Skip to content

Commit 7b0524c

Browse files
author
CarrJ
committed
- only run dependency checks for main branch
1 parent fdbf488 commit 7b0524c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/dependency-review.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ jobs:
1717
- name: 'Dependency Review'
1818
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 #4.9.0
1919
with:
20+
# If it's a PR, use the target branch. If it's a push, use 'main'.
21+
base-ref: ${{ github.event.pull_request.base.ref || 'main' }}
22+
# If it's a PR, use the source branch. If it's a push, use the current commit.
23+
head-ref: ${{ github.event.pull_request.head.ref || github.sha }}
2024
fail-on-severity: high
2125
show-patched-versions: true

0 commit comments

Comments
 (0)