Skip to content

Commit 4eff203

Browse files
committed
Add CodeQL job
1 parent 3759e0d commit 4eff203

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ master ]
9+
schedule:
10+
#daily at 01:19 UTC
11+
- cron: '19 1 * * *'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v2
25+
26+
# Initializes the CodeQL tools for scanning.
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v1
29+
with:
30+
languages: java
31+
32+
- name: Set up JDK 11
33+
uses: actions/setup-java@v2
34+
with:
35+
java-version: 11
36+
distribution: temurin
37+
check-latest: true
38+
cache: maven
39+
40+
- name: Build with Maven
41+
run: mvn verify -B -"Dgpg.skip"
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)