Skip to content

Switch the dependency review from a license deny list to an allow list - #80

Merged
Musiker15 merged 1 commit into
mainfrom
ci/dependency-review-allow-licenses
Nov 29, 2026
Merged

Musiker15 merged 1 commit into
mainfrom
ci/dependency-review-allow-licenses

Conversation

@Musiker15

Copy link
Copy Markdown
Member

Why

actions/dependency-review-action posts a warning on every pull request: deny-licenses is deprecated and may be removed in the next major release (actions/dependency-review-action#997). The workflow used it to block GPL-2.0 and GPL-3.0 and let everything else through.

The change

.github/workflows/dependency-review.yml now sets allow-licenses instead. The list holds the licenses that package-lock.json contains today:

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

Every current package passes. A pull request that brings in a dependency under any other license fails the check until that license is added to the list. LGPL-3.0-or-later covers the libvips binaries that sharp ships, and the old rule did not block it either.

The comment above the option said it blocked known malware. It is a license rule, and the comment now explains it.

Checks

The workflow file parses as YAML and the with block has the expected three keys. The dependency review job on this pull request runs the new option for real.

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-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@Musiker15
Musiker15 merged commit 06c05b0 into main Nov 29, 2026
10 checks passed
@Musiker15
Musiker15 deleted the ci/dependency-review-allow-licenses branch November 29, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant