From 45d0ac5b7d9db17e0dbd658fc2b1d9dd824f8876 Mon Sep 17 00:00:00 2001 From: Musiker15 Date: Sun, 29 Nov 2026 16:06:13 +0100 Subject: [PATCH] Switch the dependency review from a license deny list to an allow list dependency-review-action warns on every pull request that deny-licenses is deprecated and may go away in the next major release (actions/dependency-review-action#997). The workflow now uses allow-licenses with the 13 licenses found in package-lock.json, so every current package passes and a new license fails the check until it is added on purpose. LGPL-3.0-or-later stays on the list for the libvips binaries that sharp ships. The comment above the option said it blocked known malware. It is a license rule, and the comment now says so. --- .github/workflows/dependency-review.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 3f0fad7..fea51e4 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -28,5 +28,11 @@ jobs: fail-on-severity: moderate # Post a comment on the PR with a summary of findings comment-summary-in-pr: always - # Deny packages with known malware - deny-licenses: GPL-2.0, GPL-3.0 + # Fail on dependencies under any license not listed here. The list + # holds the licenses found in package-lock.json; a new one has to be + # added on purpose. Replaces deny-licenses, which the action has + # deprecated (actions/dependency-review-action#997). + allow-licenses: >- + MIT, MIT-0, ISC, 0BSD, BSD-2-Clause, BSD-3-Clause, Apache-2.0, + BlueOak-1.0.0, MPL-2.0, LGPL-3.0-or-later, OFL-1.1, CC-BY-4.0, + CC0-1.0