-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (57 loc) · 1.85 KB
/
Copy pathcodeql.yml
File metadata and controls
66 lines (57 loc) · 1.85 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
63
64
65
66
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@v7
- 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 (engine module)
# Scoped to the engine module alone: no `-am`, so nothing but core is built
# and nothing but core reaches the extractor. Since the 2.0 split
# graph-compose-core is one of several artifacts published to Maven Central,
# which makes this narrower than both the publish train and the canonical
# verify gate in ci.yml — the render backends and templates ship unscanned.
# Widening it to the code-bearing published modules is tracked for 2.2,
# together with a triage pass on the standing alert set.
run: ./mvnw -B -ntp -DskipTests -pl :graph-compose-core package
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"