File tree Expand file tree Collapse file tree 2 files changed +40
-5
lines changed Expand file tree Collapse file tree 2 files changed +40
-5
lines changed Original file line number Diff line number Diff line change 1- name : Dependency Review
1+ name : Dependency Review - License/Vulns
22
33# ##
44# This workflow analyzes dependencies introduced by pull requests to help identify security vulnerabilities
@@ -8,9 +8,9 @@ name: Dependency Review
88# The default preset is "license-deny-vulnerability-high". This preset has this behavior:
99#
1010# Fail if a dependency is found with a license that is in the deny_licenses list and fails if vulnerabilities are found in the
11- # dependency tree with specified severity or greater.
11+ # dependency tree with a high severity or greater.
1212#
13- # To set the DEPENDENCY_REVIEW_CONFIG_PRESET repo variable using the gh cli, see :
13+ # To override the config preset, set the DEPENDENCY_REVIEW_CONFIG_PRESET repo variable using the gh cli:
1414# gh variable set DEPENDENCY_REVIEW_CONFIG_PRESET --body "license-deny-vulnerability-high"
1515# ##
1616
2121permissions : {}
2222
2323jobs :
24- dependency-review :
25- name : Review Dependencies
24+ license-and-vulnerabilities :
25+ name : License and Vulnerabilities
2626 permissions :
2727 contents : read
2828 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ name : Dependency Review - Vulnerability
2+
3+ # ##
4+ # This workflow analyzes dependencies introduced by pull requests to help identify security vulnerabilities.
5+ #
6+ # To override the default configuration preset, set the `DEPENDENCY_REVIEW_CONFIG_PRESET` variable in the repository settings.
7+ # The default preset is "vulnerability-high". This preset has this behavior:
8+ #
9+ # Fail if a dependency is found in the dependency tree with a high severity or greater.
10+ # ##
11+
12+ on :
13+ merge_group :
14+ pull_request :
15+
16+ permissions : {}
17+
18+ jobs :
19+ vulnerability :
20+ name : Vulnerabilities
21+ permissions :
22+ contents : read
23+ runs-on : ubuntu-latest
24+ # Skip on merge group events
25+ if : ${{ github.event_name == 'pull_request' }}
26+ steps :
27+ - uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0
30+ persist-credentials : false
31+
32+ - name : Dependency Review
33+ uses : smartcontractkit/.github/actions/dependency-review@dependency-review/v2
34+ with :
35+ config-preset : vulnerability-high
You can’t perform that action at this time.
0 commit comments