Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

License scanning #86

Merged
merged 3 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/license-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: License Scanning

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: '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'
9 changes: 9 additions & 0 deletions .license/allowed-licenses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
"Apache License 2.0",
"MIT",
"MS-EULA",
"Apache-2.0",
"LICENSE_MIT.txt",
"LICENSE",
"LICENSE.MD"
]
Loading