Skip to content

Commit 27c3873

Browse files
committed
Dependency review improvements
1 parent 35d2b50 commit 27c3873

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,40 @@
11
name: "Dependency Review"
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [ "opened", "synchronize", "edited", "reopened" ]
6-
paths-ignore:
7-
- "docs/**"
6+
paths:
7+
- "*"
8+
- ".github/**"
89
push:
910
branches:
1011
- "**"
11-
paths-ignore:
12-
- "docs/**"
12+
paths:
13+
- "*"
14+
- ".github/**"
1315

1416
concurrency:
1517
group: "${{ github.workflow }}-${{ github.ref }}"
1618
cancel-in-progress: true
1719

1820
permissions:
1921
contents: "read"
22+
pull-requests: "write"
2023

2124
jobs:
2225
dependency-review:
2326
name: "Dependency Review"
2427
runs-on: "ubuntu-latest"
2528

26-
if: |
27-
github.event_name != 'pull_request'
28-
|| github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
29-
3029
steps:
3130
- name: "Checkout"
3231
uses: "actions/checkout@v4"
3332

3433
- name: "Dependency Review"
3534
uses: "actions/dependency-review-action@v4"
3635
with:
37-
base-ref: "${{ github.event.before }}"
38-
head-ref: "${{ github.sha }}"
36+
base-ref: "${{ github.event_name == 'push' && github.event.before || '' }}"
37+
head-ref: "${{ github.event_name == 'push' && github.sha || '' }}"
38+
comment-summary-in-pr: "always"
39+
fail-on-severity: "high"
40+
show-openssf-scorecard: false

0 commit comments

Comments
 (0)