File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Dependency Review
2+
3+ # This workflow analyzes dependencies introduced by pull requests to help identify security vulnerabilities
4+ # and for invalid dependency licenses.
5+ #
6+ # To override the default configuration preset, set the `DEPENDENCY_REVIEW_CONFIG_PRESET` variable in the repository settings.
7+ # The default preset is "license-deny-vulnerability-high". This preset has this behavior:
8+ # - Fails if a dependency is found with a license that is in the
9+ # - deny_licenses list and fails if vulnerabilities are found in the
10+ # dependency tree with specified severity or greater.
11+
12+ # To set the DEPENDENCY_REVIEW_CONFIG_PRESET repo variable using the gh cli, see:
13+ # gh variable set DEPENDENCY_REVIEW_CONFIG_PRESET --body "license-deny-vulnerability-high"
14+ #
15+ # Usage:
16+ # jobs:
17+ # dependency-review:
18+ # uses: smartcontractkit/.github/.github/workflows/reusable-dependency-review.yml@<ref>
19+ # with:
20+ # config-preset: license-deny-vulnerability-high # Optional, defaults to repo variable DEPENDENCY_REVIEW_CONFIG_PRESET or "license-deny-vulnerability-high"
21+
22+ on :
23+ workflow_call :
24+ inputs :
25+ config-preset :
26+ description : " Configuration preset to use for dependency review"
27+ required : false
28+ type : string
29+ default : ${{ vars.DEPENDENCY_REVIEW_CONFIG_PRESET || 'license-deny-vulnerability-high' }}
30+
31+ permissions : {}
32+
33+ jobs :
34+ dependency-review :
35+ name : Review Dependencies
36+ permissions :
37+ contents : read
38+ runs-on : ubuntu-latest
39+ steps :
40+ - uses : actions/checkout@v4
41+ with :
42+ fetch-depth : 0
43+ persist-credentials : false
44+
45+ - name : Dependency Review
46+ uses : smartcontractkit/.github/actions/dependency-review@dependency-review/v2
47+ with :
48+ config-preset : ${{ inputs.config-preset }}
You can’t perform that action at this time.
0 commit comments