Skip to content

Commit e3f3ed1

Browse files
authored
mavensemagrep.yml
1 parent bca6814 commit e3f3ed1

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Java CI with Maven
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v4
14+
with:
15+
java-version: '17'
16+
distribution: 'temurin'
17+
cache: maven
18+
- name: Build with Maven
19+
run: mvn -B package --file pom.xml
20+
semgrep:
21+
name: semgrep/ci
22+
runs-on: ubuntu-latest
23+
container:
24+
image: semgrep/semgrep
25+
steps:
26+
- uses: actions/checkout@v4
27+
- run: semgrep ci --sarif > semgrep.sarif
28+
env:
29+
SEMGREP_APP_TOKEN: "5c987b2659a3189e9ce64a51800e3386ebc42a025d274467cc33afcbc129a50a"

0 commit comments

Comments
 (0)