Skip to content

Commit 533f195

Browse files
Add fossa and semgrep (#95)
* Add fossa and semgrep Add fossa and semgrep * Create .fossa.yml
1 parent 201331d commit 533f195

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-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: "fluent-plugin-kubernetes-objects"
5+
team: "TA-Automation"

.github/workflows/ci_build_test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,36 @@ jobs:
194194
--splunk-password $CI_SPLUNK_PASSWORD \
195195
--nodes-count $MINIKUBE_NODE_COUNTS\
196196
-p no:warnings -s -n auto
197+
fossa-scan:
198+
continue-on-error: true
199+
runs-on: ubuntu-latest
200+
steps:
201+
- uses: actions/checkout@v3
202+
- name: run fossa anlyze and create report
203+
run: |
204+
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
205+
fossa analyze --include-unused-deps --debug
206+
fossa report attribution --format text > /tmp/THIRDPARTY
207+
env:
208+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
209+
- name: upload THIRDPARTY file
210+
uses: actions/upload-artifact@v2
211+
with:
212+
name: THIRDPARTY
213+
path: /tmp/THIRDPARTY
214+
- name: run fossa test
215+
run: |
216+
fossa test --debug
217+
env:
218+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
219+
semgrep:
220+
runs-on: ubuntu-latest
221+
name: security-sast-semgrep
222+
if: github.actor != 'dependabot[bot]'
223+
steps:
224+
- uses: actions/checkout@v3
225+
- name: Semgrep
226+
id: semgrep
227+
uses: returntocorp/semgrep-action@v1
228+
with:
229+
publishToken: ${{ secrets.SEMGREP_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)