Skip to content

Commit a61038d

Browse files
committed
Add dependency review workflow and config
This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, PRs introducing known-vulnerable packages or dependencies not in the allow list will be blocked from merging.
1 parent 2b77e17 commit a61038d

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
allow_licenses:
2+
- Apache-1.1
3+
- Apache-2.0
4+
- BSD-2-Clause
5+
- BSD-3-Clause
6+
- BSL-1.0
7+
- ISC
8+
- MIT
9+
- NCSA
10+
- OpenSSL
11+
- Python-2.0
12+
- X11
13+
comment-summary-in-pr: true
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Dependency Review"
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
dependency-review:
9+
runs-on: ubuntu-22.04
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
steps:
14+
- name: "Checkout Repository"
15+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
16+
17+
- name: "Dependency Review"
18+
uses: actions/dependency-review-action@1360a344ccb0ab6e9475edef90ad2f46bf8003b1 # v3.0.6
19+
with:
20+
config-file: "./.github/dependency-review-config.yml"

0 commit comments

Comments
 (0)