From c913af9e9dfe8cb0d2a9d330936fe95a8f2168cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Devos?= Date: Tue, 6 Oct 2026 11:20:15 +0200 Subject: [PATCH] ci: block PRs that add a vulnerable dependency (SDK-12427) --- .github/workflows/dependencies.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/dependencies.yml diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml new file mode 100644 index 0000000..4052027 --- /dev/null +++ b/.github/workflows/dependencies.yml @@ -0,0 +1,23 @@ +name: Dependencies + +# Blocks a PR that adds or bumps a dependency (npm or GitHub Action) with a known high or critical vulnerability (PCI-DSS 6.2.3). +on: + pull_request: + +permissions: + contents: read + +concurrency: + group: dependencies-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + review: + name: Dependency review + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0 + with: + fail-on-severity: high + fail-on-scopes: runtime, development, unknown