-
Notifications
You must be signed in to change notification settings - Fork 14
31 lines (27 loc) · 1 KB
/
license-scanning.yml
File metadata and controls
31 lines (27 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: License Scanning
on:
push:
workflow_dispatch:
permissions:
contents: read
jobs:
dotnet-modules-scan:
name: dotnet-scan
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup .NET
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
with:
dotnet-version: 8.x
- name: Build project with dotnet
run: dotnet build --configuration Release
working-directory: 'src'
- name: Install nuget-license
run: dotnet tool install --global nuget-license --version 3.1.3
working-directory: 'src'
- name: run nuget license
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
working-directory: 'src'