Skip to content

Commit

Permalink
License scanning (#86)
Browse files Browse the repository at this point in the history
* Create allowed-licenses.json

* Create license-scanning.yml

---------

Co-authored-by: Brian Ingenito <[email protected]>
  • Loading branch information
josspo and bingenito authored Dec 20, 2023
1 parent 6528131 commit e03cf33
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
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"
]

0 comments on commit e03cf33

Please sign in to comment.