From 2a9b6d62d003c320f84dff27f563394316f90394 Mon Sep 17 00:00:00 2001 From: studio-prisma <282898618+studio-prisma@users.noreply.github.com> Date: Mon, 2 Nov 2026 12:53:43 +0100 Subject: [PATCH] ci: add dependency review for pull requests Fails a pull request that adds or upgrades a dependency with a known vulnerability (moderate and up, runtime and development scopes). Complements Dependabot, which only reports what is already on main. --- .github/workflows/dependency-review.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 0000000..8d47722 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,24 @@ +name: Dependency review + +# Fails a pull request that adds or upgrades to a dependency with a known +# vulnerability. Complements Dependabot, which only reports what is already +# on the default branch. + +on: + pull_request: + +permissions: + contents: read + +jobs: + dependency-review: + name: Dependency review + runs-on: ubuntu-latest + steps: + - name: Review dependency changes + uses: actions/dependency-review-action@v5 + with: + fail-on-severity: moderate + # Development dependencies count too: they run in CI with the + # repository token. + fail-on-scopes: runtime, development