File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Dependency Review
2+
3+ # ##
4+ # This workflow analyzes dependencies introduced by pull requests to help identify security vulnerabilities
5+ # and for invalid dependency licenses.
6+ #
7+ # To override the default configuration preset, set the `DEPENDENCY_REVIEW_CONFIG_PRESET` variable in the repository settings.
8+ # The default preset is "license-deny-vulnerability-high". This preset has this behavior:
9+ #
10+ # 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.
12+ #
13+ # To set the DEPENDENCY_REVIEW_CONFIG_PRESET repo variable using the gh cli, see:
14+ # gh variable set DEPENDENCY_REVIEW_CONFIG_PRESET --body "license-deny-vulnerability-high"
15+ # ##
16+
17+ on :
18+ merge_group :
19+ pull_request :
20+
21+ permissions : {}
22+
23+ jobs :
24+ dependency-review :
25+ name : Review Dependencies
26+ permissions :
27+ contents : read
28+ runs-on : ubuntu-latest
29+ # Skip on merge group events
30+ if : ${{ github.event_name == 'pull_request' }}
31+ steps :
32+ - uses : actions/checkout@v4
33+ with :
34+ fetch-depth : 0
35+ persist-credentials : false
36+
37+ - name : Dependency Review
38+ uses : smartcontractkit/.github/actions/dependency-review@dependency-review/v2
39+ with :
40+ config-preset : ${{ vars.DEPENDENCY_REVIEW_CONFIG_PRESET || 'license-deny-vulnerability-high' }}
You can’t perform that action at this time.
0 commit comments