Skip to content

Commit 0c74bd1

Browse files
authored
Add dependency review workflow and config (#737)
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 b9a6684 commit 0c74bd1

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/dependency-review-config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
steps:
11+
- name: "Checkout Repository"
12+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
13+
14+
- name: "Dependency Review"
15+
uses: actions/dependency-review-action@0efb1d1d84fc9633afcdaad14c485cbbc90ef46c # v2.5.1
16+
with:
17+
config-file: "./.github/dependency-review-config.yml"

0 commit comments

Comments
 (0)