Repository navigation
Switch the dependency review from a license deny list to an allow list - #80
Merged
Merged
Conversation
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.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
actions/dependency-review-actionposts a warning on every pull request:deny-licensesis 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.ymlnow setsallow-licensesinstead. The list holds the licenses thatpackage-lock.jsoncontains 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
sharpships, 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
withblock has the expected three keys. The dependency review job on this pull request runs the new option for real.