Skip to content

Commit bd0d903

Browse files
authored
Merge pull request #194 from bingenito/license-scanning
2 parents 122982b + 584a3cc commit bd0d903

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/license-scanning.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
- name: Build project with dotnet
2424
run: dotnet build --configuration Release
2525
working-directory: 'src'
26-
- name: Install dotnet-project-license
27-
run: dotnet tool install --global dotnet-project-licenses --version 2.7.1
26+
- name: Install nuget-license
27+
run: dotnet tool install --global nuget-license --version 3.1.3
2828
working-directory: 'src'
29-
- name: run dotnet-project-licenses
30-
run: dotnet-project-licenses -i . --allowed-license-types ../.license/allowed-licenses.json
29+
- name: run nuget license
30+
run: nuget-license -i fdc3-dotnet.sln --allowed-license-types ../.license/allowed-licenses.json --output JsonPretty --error-only -exclude-projects ../.license/excluded-projects.json -mapping ../.license/license-mapping.json
3131
working-directory: 'src'

.license/allowed-licenses.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
"Apache License 2.0",
33
"MIT",
44
"MS-EULA",
5-
"Apache-2.0",
6-
"LICENSE_MIT.txt",
7-
"LICENSE",
8-
"LICENSE.MD"
5+
"Apache-2.0"
96
]

.license/excluded-projects.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
"*.Tests.csproj",
3+
"*WpfFdc3.csproj"
4+
]

.license/license-mapping.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"https://github.com/dotnet/standard/blob/master/LICENSE.TXT": "MIT"
3+
}

0 commit comments

Comments
 (0)