Merge pull request #248 from finos/dependabot/nuget/src/Tests/Finos.F… #439
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |