Skip to content

[BUG] Update actions/dependency-review-action from 4 to 5 breaks on Unknown License #1099

@hspaans

Description

@hspaans

Describe the bug
Update actions/dependency-review-action from 4 to 5 breaks as actions/dependency-review-action has no license detected. While in the OpenSSF scorecard it is detected.

To Reproduce
Have a workflow to run the dependency review action with a list of allowed licenses including the MIT license defined in the repository of actions/dependency-review-action:

jobs:
  dependency-review:
    runs-on: ubuntu-latest
    steps:
      - name: 'Checkout repository'
        uses: actions/checkout@v6

      - name: 'Dependency Review'
        uses: actions/dependency-review-action@v5
        # Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
        with:
          comment-summary-in-pr: always
          allow-licenses: GPL-2.0-or-later, LGPL-2.1-or-later, GFDL-1.1-or-later, MIT, MPL-2.0, CC-BY-4.0, CC-BY-SA-4.0, Apache-2.0

Expected behavior
The license definitions would match.

Screenshots
Image

Action version
v5

Note: if you're not running the latest release please try that first!

Examples
Already attached as screenshot and under to reproduce.

Additional context
Upgrade was triggered by Dependabot to go from v4 to v5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions