Skip to content

Commit 127aeea

Browse files
integrate kafka connector with fossa
1 parent 9488f89 commit 127aeea

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.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)