Skip to content

Commit dc83ac5

Browse files
committed
build: run dependency check on pushes, for more action uniformity
1 parent 9e94ddb commit dc83ac5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/dependency-review.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
#
55
# Source repository: https://github.com/actions/dependency-review-action
66
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7+
78
name: 'Dependency Review'
8-
on: [pull_request]
9+
on:
10+
push:
11+
branches:
12+
- master
13+
- nedbat/*
14+
pull_request:
15+
workflow_dispatch:
916

1017
permissions:
1118
contents: read
@@ -18,3 +25,6 @@ jobs:
1825
uses: actions/checkout@v3
1926
- name: 'Dependency Review'
2027
uses: actions/dependency-review-action@v3
28+
with:
29+
base-ref: ${{ github.event.pull_request.base.ref || 'master' }}
30+
head-ref: ${{ github.event.pull_request.head.ref || github.ref }}

0 commit comments

Comments
 (0)