Merge pull request #161 from finos/dependabot/github_actions/actions/… #194
This file contains 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Build project with dotnet | |
run: dotnet build --configuration Release | |
working-directory: 'src' | |
- name: Install dotnet-project-license | |
run: dotnet tool install --global dotnet-project-licenses --version 2.7.1 | |
working-directory: 'src' | |
- name: run dotnet-project-licenses | |
run: dotnet-project-licenses -i . --allowed-license-types ../.license/allowed-licenses.json | |
working-directory: 'src' |