Skip to content

Commit 319e90c

Browse files
authored
Create separate workflows for license + vuln checking and vuln checking only (#4)
1 parent 8f09907 commit 319e90c

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

.github/workflows/dependency-review.yml renamed to .github/workflows/dependency-review-vulnerability-license.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

@@ -21,8 +21,8 @@ on:
2121
permissions: {}
2222

2323
jobs:
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
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)