Skip to content

Merge pull request #300 from josspo/license-scanning #1

Merge pull request #300 from josspo/license-scanning

Merge pull request #300 from josspo/license-scanning #1

name: License Scanning dotnet
on:
push:
workflow_dispatch:
jobs:
dotnet-modules-scan:
name: dotnet-scan
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build project with dotnet
run: dotnet build --configuration Release
working-directory: 'dotnet'
- name: Install dotnet-project-license
run: dotnet tool install --global dotnet-project-licenses --version 2.7.1
working-directory: 'dotnet'
- name: run dotnet-project-licenses
run: dotnet-project-licenses -i . --allowed-license-types allowed-licenses.json
working-directory: 'dotnet'