From ae606e0758200d2ebecdbb11c0d72f037c04c1a6 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 5 May 2023 13:10:44 -0600 Subject: [PATCH 1/4] Create dependency-review.yml --- .github/workflows/dependency-review.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/dependency-review.yml diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 0000000000000..fe461b4243c04 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,20 @@ +# Dependency Review Action +# +# 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, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. +# +# Source repository: https://github.com/actions/dependency-review-action +# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement +name: 'Dependency Review' +on: [pull_request] + +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - name: 'Checkout Repository' + uses: actions/checkout@v3 + - name: 'Dependency Review' + uses: actions/dependency-review-action@v2 From 31f22673eab21a53b55aa534006888b14b283454 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 5 May 2023 14:57:09 -0600 Subject: [PATCH 2/4] Update .github/workflows/dependency-review.yml --- .github/workflows/dependency-review.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index fe461b4243c04..9920afb2fa81a 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -18,3 +18,6 @@ jobs: uses: actions/checkout@v3 - name: 'Dependency Review' uses: actions/dependency-review-action@v2 + with: + fail-on-severity: high + From bc09678a68b2fb5e9d2b8939b2fead2fc66e93b6 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 5 May 2023 15:47:14 -0600 Subject: [PATCH 3/4] removing whitespace for linter --- .github/workflows/dependency-review.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 9920afb2fa81a..1a41b28ea3222 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -20,4 +20,3 @@ jobs: uses: actions/dependency-review-action@v2 with: fail-on-severity: high - From b6abb90dd583d9bb111ac1aabc9ca85a19101e61 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 5 May 2023 15:56:17 -0600 Subject: [PATCH 4/4] Update .github/workflows/dependency-review.yml denying certain licenses (subset) --- .github/workflows/dependency-review.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 1a41b28ea3222..ba00b5d3db251 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -20,3 +20,6 @@ jobs: uses: actions/dependency-review-action@v2 with: fail-on-severity: high + # compatible/incompatible licenses addressed here: https://www.apache.org/legal/resolved.html + # find SPDX identifiers here: https://spdx.org/licenses/ + deny-licenses: MS-LPL, BUSL-1.1, QPL-1.0, Sleepycat, SSPL-1.0, CPOL-1.02, AGPL-3.0, GPL-1.0+, BSD-4-Clause-UC, NPL-1.0, NPL-1.1, JSON