Skip to content

Commit 4e20f1d

Browse files
authored
Merge pull request #322 from cloudfoundry-community/add_fossa_semgrep
Add fossa and semgrep
2 parents 8371eee + bd8c3c3 commit 4e20f1d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-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: "splunk-firehose-nozzle"
5+
team: "TA-Automation"

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,41 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11+
fossa-scan:
12+
continue-on-error: true
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: run fossa anlyze and create report
17+
run: |
18+
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
19+
fossa analyze --include-unused-deps --debug
20+
fossa report attribution --format text > /tmp/THIRDPARTY
21+
env:
22+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
23+
- name: upload THIRDPARTY file
24+
uses: actions/upload-artifact@v2
25+
with:
26+
name: THIRDPARTY
27+
path: /tmp/THIRDPARTY
28+
- name: run fossa test
29+
run: |
30+
fossa test --debug
31+
env:
32+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
33+
34+
semgrep:
35+
runs-on: ubuntu-latest
36+
name: security-sast-semgrep
37+
if: github.actor != 'dependabot[bot]'
38+
steps:
39+
- uses: actions/checkout@v3
40+
- name: Semgrep
41+
id: semgrep
42+
uses: returntocorp/semgrep-action@v1
43+
with:
44+
publishToken: ${{ secrets.SEMGREP_PUBLISH_TOKEN }}
45+
1146
build:
1247
runs-on: ubuntu-latest
1348
steps:

0 commit comments

Comments
 (0)