Skip to content

allow-dependencies-licenses: allow-list specific license #1046

@erikburt

Description

@erikburt

Is your feature request related to a problem? Please describe.

When using the allow-dependencies-licenses configuration, it only allows for specifying specific packages and not their particular license. This is an issue if a dependency you've previously allowed, changes their license to something more restrictive.

Describe the solution you'd like

Use PURL qualifiers (or subpaths) to allow optional filtering of specific licenses for specific dependencies.

Example:

  • pkg:npm/@foo/bar?license=GPL-1.0-or-later
    • If this package changes to a different license in my deny_licenses field, then it should fail.
  • Not specifying license should retain existing behaviour of a "blanket" allow.

Describe alternatives you've considered

There are no alternatives.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions