Skip to content

Commit 052b742

Browse files
Merge pull request #340 from splunk/fossa_integration
Fossa integration
2 parents 7b6b050 + 0910fb6 commit 052b742

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.fossa.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 3
2+
server: https://app.fossa.com
3+
project:
4+
id: "kafka-connect-splunk"
5+
team: "TA-Automation"

.github/workflows/ci_build_test.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,41 @@ on:
55
branches-ignore:
66
- /^release\/.*/
77
- master
8+
workflow_call:
9+
secrets:
10+
FOSSA_API_KEY:
11+
description: API token for FOSSA app
12+
required: true
813

914
jobs:
15+
fossa-scan:
16+
continue-on-error: true
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: run fossa anlyze and create report
21+
run: |
22+
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
23+
fossa analyze --debug
24+
fossa report attribution --format text > /tmp/THIRDPARTY
25+
env:
26+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
27+
- name: upload THIRDPARTY file
28+
uses: actions/upload-artifact@v2
29+
with:
30+
name: THIRDPARTY
31+
path: /tmp/THIRDPARTY
32+
- name: run fossa test
33+
run: |
34+
fossa test --debug
35+
env:
36+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
1037

1138
build-unit-test:
1239
name: build and run unit test
1340
runs-on: ubuntu-20.04
41+
needs:
42+
- fossa-scan
1443
steps:
1544
- name: Checkout
1645
uses: actions/checkout@v2

0 commit comments

Comments
 (0)