Skip to content

Commit 54a20ae

Browse files
committed
Add semgrep
1 parent d298a98 commit 54a20ae

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci_build_test.yaml

Lines changed: 17 additions & 0 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,24 @@ 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
4157
needs:
4258
- fossa-scan
59+
- semgrep
4360
steps:
4461
- name: Checkout
4562
uses: actions/checkout@v2

0 commit comments

Comments
 (0)