Skip to content

Commit 1fb72a1

Browse files
Set up continuous SAST with Semgrep
Add a Static Application Security Test (SAST) scan with Semgrep [1]. Semgrep supports scanning JavaScript, Dockerfiles, and configuration files such as GitHub Actions workflows. Harden-runner is not configured for this job because it doesn't work with container-based jobs. -- 1. https://semgrep.dev
1 parent 81bbeeb commit 1fb72a1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/check.yml

+12
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ jobs:
114114
- name: Lint YAML
115115
if: ${{ failure() || success() }}
116116
run: make lint-yml
117+
semgrep:
118+
name: Semgrep
119+
runs-on: ubuntu-22.04
120+
env:
121+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
122+
container:
123+
image: returntocorp/semgrep
124+
steps:
125+
- name: Checkout repository
126+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
127+
- name: Perform Semgrep analysis
128+
run: semgrep ci
117129
test:
118130
name: Test
119131
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)