From 93968c34d20256d76ea5ae63b85f9b8200d8be0d Mon Sep 17 00:00:00 2001 From: gwehrs <106992224+gwehrs@users.noreply.github.com> Date: Tue, 1 Nov 2022 11:37:34 -0500 Subject: [PATCH 1/3] Create dependency-review.yml Dependency review for build blocking at moderate+ severity levels. --- .github/workflows/dependency-review.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 00000000..53f34c4a --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,22 @@ +# 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 + with: + fail-on-severity: moderate From 617cf017162a483bababda075c78afbf6d82a9ee Mon Sep 17 00:00:00 2001 From: gwehrs <106992224+gwehrs@users.noreply.github.com> Date: Fri, 4 Nov 2022 08:56:25 -0500 Subject: [PATCH 2/3] Update dependency-review.yml --- .github/workflows/dependency-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 53f34c4a..16131852 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -12,7 +12,7 @@ permissions: jobs: dependency-review: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: 'Checkout Repository' uses: actions/checkout@v3 From c51dd6bc403ad67968d99fe2b8410247bebcaf22 Mon Sep 17 00:00:00 2001 From: gwehrs <106992224+gwehrs@users.noreply.github.com> Date: Thu, 10 Nov 2022 12:18:07 -0600 Subject: [PATCH 3/3] Update and rename dependency-review.yml to [SEC-799] Block Builds on failed GitHub Dependency Review --- ...> [SEC-799] Block Builds on failed GitHub Dependency Review} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{dependency-review.yml => [SEC-799] Block Builds on failed GitHub Dependency Review} (98%) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/[SEC-799] Block Builds on failed GitHub Dependency Review similarity index 98% rename from .github/workflows/dependency-review.yml rename to .github/workflows/[SEC-799] Block Builds on failed GitHub Dependency Review index 16131852..12f218af 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/[SEC-799] Block Builds on failed GitHub Dependency Review @@ -18,5 +18,5 @@ jobs: uses: actions/checkout@v3 - name: 'Dependency Review' uses: actions/dependency-review-action@v2 - with: + with: fail-on-severity: moderate