Skip to content

Merge branch 'main' into dependabot/github_actions/actions/download-a… #505

Merge branch 'main' into dependabot/github_actions/actions/download-a…

Merge branch 'main' into dependabot/github_actions/actions/download-a… #505

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@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
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'