-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (53 loc) · 1.5 KB
/
codeql.yml
File metadata and controls
62 lines (53 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CodeQL
on:
push:
branches:
- main
- develop
pull_request:
# Run on any incoming PR regardless of the base branch so feature
# branches targeting `develop` also get analysed.
workflow_dispatch:
schedule:
- cron: '32 6 * * 1'
permissions:
contents: read
jobs:
analyze:
name: CodeQL — ${{ matrix.language }}
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: read
contents: read
security-events: write
env:
JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
strategy:
fail-fast: false
matrix:
language:
- java-kotlin
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Temurin JDK 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
cache: maven
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Build (library module only)
# `-pl .` scopes the analysis to the published artifact and matches
# the canonical verify gate. Examples/benchmarks are intentionally
# excluded — they ship no production code.
run: ./mvnw -B -ntp -DskipTests -pl . package
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"