Skip to content

Commit

Permalink
ci: fossa scan (#629)
Browse files Browse the repository at this point in the history
* adding fossa

* fixing workflow
  • Loading branch information
uoboda-splunk committed Jun 6, 2022
1 parent 93eb600 commit 2066a56
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
6 changes: 6 additions & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 3
server: https://app.fossa.com

project:
id: "pytest-splunk-addon"
team: "TA-Automation"
53 changes: 24 additions & 29 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,28 @@ concurrency:
cancel-in-progress: true

jobs:
compliance-dependencies:
name: Compliance Dependencies
fossa-scan:
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: ort-action
uses: splunk/addonfactory-ort-action@v1
id: ort-action
with:
WorkDir: .
UsePython3: "3.7"
- name: ort-action-artifacts-reports
uses: actions/upload-artifact@v3
with:
name: analysis-reports
path: |
.ort/reports/*
if: always()
- name: ort-action-artifacts-analyzer
uses: actions/upload-artifact@v3
- uses: actions/checkout@v3
- name: run fossa anlyze and create report
run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
fossa analyze --debug
fossa report attribution --format text > /tmp/THIRDPARTY
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
- name: upload THIRDPARTY file
uses: actions/upload-artifact@v2
with:
name: analysis-analyzer
path: |
.ort/analyzer/*
if: always()
name: THIRDPARTY
path: /tmp/THIRDPARTY
- name: run fossa test
run: |
fossa test --debug
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

compliance-copyrights:
name: Compliance Copyright Headers
Expand Down Expand Up @@ -141,7 +137,7 @@ jobs:
name: Test splunk external
needs:
- pre-commit
- compliance-dependencies
- fossa-scan
- compliance-copyrights
- test-splunk-doc
- test-splunk-unit
Expand Down Expand Up @@ -192,7 +188,7 @@ jobs:
name: Test Matrix
needs:
- pre-commit
- compliance-dependencies
- fossa-scan
- compliance-copyrights
- test-splunk-doc
- test-splunk-unit
Expand Down Expand Up @@ -248,12 +244,11 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.7"
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v2
with:
name: analysis-reports
path: /tmp/analysis-reports
name: THIRDPARTY
- name: Update Notices
run: cp -f /tmp/analysis-reports/NOTICE_summary NOTICE
run: cp -f THIRDPARTY NOTICE
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
Expand Down

0 comments on commit 2066a56

Please sign in to comment.