File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ stages : # List of stages for jobs, and their order of execution
2+ - build
3+ - test
4+ - deploy
5+
6+ build-job : # This job runs in the build stage, which runs first.
7+ stage : build
8+ image : maven:11
9+ script :
10+ - echo "Compiling the code..."
11+ - mvn clean install
12+ - echo "Compile complete."
13+
14+ semgrep :
15+ image : semgrep/semgrep # A Docker image with Semgrep installed.
16+ variables :
17+ # Connect to Semgrep AppSec Platform through your SEMGREP_APP_TOKEN.
18+ # Generate a token from Semgrep AppSec Platform > Settings and add it in below variable.
19+ SEMGREP_APP_TOKEN : " 5c2a721c5ea70bcc5356ab028c7e38625aca1356197866d36cfbdcf9e8ec2f92"
20+ # Upload findings to GitLab SAST Dashboard:
21+ SEMGREP_GITLAB_JSON : " 1"
22+ script : semgrep ci --gitlab-sast > gl-sast-report.json || true
23+ artifacts :
24+ reports :
25+ sast : gl-sast-report.json
You can’t perform that action at this time.
0 commit comments