Skip to content

Commit

Permalink
Add github->action: Checking licenses using the Fossology tool (#712)
Browse files Browse the repository at this point in the history
Signed-off-by: Taras Drozdovskyi <[email protected]>
  • Loading branch information
tdrozdovsky authored Aug 16, 2023
1 parent e7fbd7c commit c73b559
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/fossology-check.yml
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
12 changes: 12 additions & 0 deletions whitelist.json
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/*"
]
}

0 comments on commit c73b559

Please sign in to comment.