Skip to content

Commit aaf36f3

Browse files
committed
Add CodeQL workflow
Signed-off-by: marko-bekhta <[email protected]>
1 parent 6cad0b7 commit aaf36f3

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "main", "9.0" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [ java ]
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
27+
- name: Setup Java
28+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
29+
with:
30+
distribution: temurin
31+
java-version: 21
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a # v3.28.4
35+
with:
36+
languages: ${{ matrix.language }}
37+
queries: +security-and-quality
38+
build-mode: manual
39+
40+
- name: Build
41+
run: ./mvnw clean install -DskipTests=true -Pskip-checks -Pci-build
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a # v3.28.4
45+
with:
46+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)