-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Release 4.3.4 changes how license list is parsed and having SPDX expression like Apache-2.0 AND MIT
now causes all license checks to fail. But also does not seem to work as intended (qustion mark?).
To Reproduce
- specify
Apache-2.0 AND MIT
expression in theallow-licenses
input, like so:
allow-licenses: >-
Apache-2.0,
Apache-2.0 AND MIT,
MIT
- have project with package using
Apache-2.0 AND MIT
license expression (like morelinq 4.2.0) - (optional) have other packages using
Apache-2.0
orMIT
licenses - run the action in versions 4.3.3 and 4.3.4
On version
4.3.3
it passes, on version4.3.4
all packages fail withIncompatible License
, and ifApache-2.0 AND MIT
is removed from the list, onlymorelinq
fails as incompatible.
Expected behavior
Apache-2.0 AND MIT
should be able to pass.
Screenshots
v4.3.4 with Apache-2.0 AND MIT
in allow-licenses
input:
v4.3.4 without Apache-2.0 AND MIT
:
v4.3.3 with Apache-2.0 AND MIT
(no screenshot as it passes)
Action version
4.3.4
Examples
Project file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
<PackageReference Include="xunit" Version="2.5.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
<PackageReference Include="morelinq" Version="4.2.0"/>
</ItemGroup>
</Project>
Action:
- name: Dependency Review
uses: actions/dependency-review-action@v4.3.4
with:
license-check: true
allow-licenses: >-
Apache-2.0,
Apache-2.0 AND MIT,
MIT
Additional context
None.
gdostie, JPLachance, lucacome, BertelBB, nicorikken and 1 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working