-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github->action: Checking licenses using the Fossology tool (#712)
Signed-off-by: Taras Drozdovskyi <[email protected]>
- Loading branch information
1 parent
e7fbd7c
commit c73b559
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Fossology check | ||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
fossology: | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: fossology/fossology:scanner | ||
|
||
steps: | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | ||
|
||
- name: Fossology run | ||
run: | | ||
export GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}} | ||
export GITHUB_PULL_REQUEST="None" | ||
/bin/fossologyscanner repo nomos ojo copyright keyword | ||
continue-on-error: true | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce | ||
with: | ||
name: scan-fossology-report | ||
path: ./results | ||
|
||
- name: Artifact download | ||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a | ||
with: | ||
name: scan-fossology-report |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"licenses": [ | ||
"BSD-2-Clause", | ||
"BSD-3-Clause", | ||
"Public-domain", | ||
"MIT", | ||
"Apache-2.0" | ||
], | ||
"exclude": [ | ||
"tools/*" | ||
] | ||
} |