-
Notifications
You must be signed in to change notification settings - Fork 364
79 lines (68 loc) · 1.97 KB
/
codeql-analysis.yml
File metadata and controls
79 lines (68 loc) · 1.97 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
67
68
69
70
71
72
73
74
75
76
77
78
79
name: "CodeQL"
on:
push:
branches: [develop, main]
paths-ignore:
- 'README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'SECURITY.md'
- 'documentation/**'
- '.github/**'
- '!.github/workflows/codeql-analysis.yml'
pull_request:
# The branches below must be a subset of the branches above
branches: [develop]
paths-ignore:
- 'README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'SECURITY.md'
- 'documentation/**'
- '.github/**'
- '!.github/workflows/codeql-analysis.yml'
schedule:
- cron: '0 16 * * 0'
# Keep in sync with build.yml and test.yml and analysis-of-endpoint-connections.yml
env:
CI: true
node: 24
java: 21
jobs:
analyse:
name: Analyse
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '${{ env.node }}'
cache: 'npm'
# Install Java
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '${{ env.java }}'
cache: 'gradle'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
# Override language selection by uncommenting this and choosing your languages
with:
languages: javascript, java
# Build Angular client separately so esbuild gets full system memory without
# competing with the Gradle JVM (which reserves up to 4g).
- name: Install npm dependencies
run: npm install
- name: Build Angular Client
run: npm run clean-www && npm run prebuild && npx ng build --configuration production --optimization=false
- name: Build Java
run: ./gradlew -Pprod -Pwar bootWar -x webapp
- run: rm -rf build/resources/main/static
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4