Skip to content

Commit 4bc5586

Browse files
authored
Merge pull request #348 from splunk/add_semgrep
Add semgrep
2 parents d298a98 + 3c63f70 commit 4bc5586

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/ci_build_test.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
FOSSA_API_KEY:
1111
description: API token for FOSSA app
1212
required: true
13+
14+
SEMGREP_PUBLISH_TOKEN:
15+
description: Publish token for Semgrep
16+
required: true
1317

1418
jobs:
1519
fossa-scan:
@@ -35,11 +39,21 @@ jobs:
3539
env:
3640
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
3741

42+
semgrep:
43+
runs-on: ubuntu-latest
44+
name: security-sast-semgrep
45+
if: github.actor != 'dependabot[bot]'
46+
steps:
47+
- uses: actions/checkout@v3
48+
- name: Semgrep
49+
id: semgrep
50+
uses: returntocorp/semgrep-action@v1
51+
with:
52+
publishToken: ${{ secrets.SEMGREP_PUBLISH_TOKEN }}
53+
3854
build-unit-test:
3955
name: build and run unit test
4056
runs-on: ubuntu-20.04
41-
needs:
42-
- fossa-scan
4357
steps:
4458
- name: Checkout
4559
uses: actions/checkout@v2

0 commit comments

Comments
 (0)