Skip to content

Commit ad0c134

Browse files
Update maven.yml
1 parent ce8c9a6 commit ad0c134

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/maven.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ on:
1616

1717
jobs:
1818
build:
19-
2019
runs-on: ubuntu-latest
21-
2220
steps:
2321
- uses: actions/checkout@v4
2422
- name: Set up JDK 17
@@ -30,4 +28,21 @@ jobs:
3028
- name: Build with Maven
3129
run: mvn -B package --file pom.xml
3230

33-
31+
semgrep:
32+
# User definable name of this GitHub Actions job.
33+
name: semgrep/ci
34+
# If you are self-hosting, change the following `runs-on` value:
35+
runs-on: ubuntu-latest
36+
container:
37+
# A Docker image with Semgrep installed. Do not change this.
38+
image: semgrep/semgrep
39+
steps:
40+
# Fetch project source with GitHub Actions Checkout. Use either v3 or v4.
41+
- uses: actions/checkout@v4
42+
# Run the "semgrep ci" command on the command line of the docker image.
43+
- run: semgrep ci --sarif > semgrep.sarif
44+
env:
45+
# Connect to Semgrep AppSec Platform through your SEMGREP_APP_TOKEN.
46+
# Generate a token from Semgrep AppSec Platform > Settings
47+
# and add it to your GitHub secrets.
48+
SEMGREP_APP_TOKEN: "fb64c410f082bb4eb1b03abe30f87c5a58a7206b83692815efd737092cec1313"

0 commit comments

Comments
 (0)