Skip to content

Merge pull request #252 from bingenito/codecov-oidc #436

Merge pull request #252 from bingenito/codecov-oidc

Merge pull request #252 from bingenito/codecov-oidc #436

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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- 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'