File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 11name : " Dependency Review"
22
33on :
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
1416concurrency :
1517 group : " ${{ github.workflow }}-${{ github.ref }}"
1618 cancel-in-progress : true
1719
1820permissions :
1921 contents : " read"
22+ pull-requests : " write"
2023
2124jobs :
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
You can’t perform that action at this time.
0 commit comments