Skip to content

Commit 3929f4d

Browse files
authored
Add dependency review action (#80)
* add dependency review action * Add more allowed licenses
1 parent 87b549f commit 3929f4d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable
6+
# packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
10+
name: "Dependency review"
11+
on:
12+
pull_request:
13+
branches: ["main"]
14+
15+
permissions:
16+
contents: read
17+
# Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
18+
pull-requests: write
19+
20+
jobs:
21+
dependency-review:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: "Checkout repository"
25+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
26+
- name: "Dependency Review"
27+
uses: actions/dependency-review-action@5bbc3ba658137598168acb2ab73b21c432dd411b # v4.2.5
28+
# Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
29+
with:
30+
comment-summary-in-pr: always
31+
allow-licenses: Apache-2.0, BSD-2-Clause, BSD-3-Clause, BSL-1.0, CC0-1.0, ISC, MIT, MPL-2.0, Unlicense
32+
# fail-on-severity: moderate
33+
# deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later
34+
# retry-on-snapshot-warnings: true

0 commit comments

Comments
 (0)