Repository navigation
87 lines (78 loc) · 2.4 KB
/
Copy pathcodeql-analysis.yml
File metadata and controls
87 lines (78 loc) · 2.4 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
80
81
82
83
84
85
86
87
name: "CodeQL"
on:
push:
branches: [ "main", "develop" ]
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE*'
pull_request:
branches: [ "main", "develop" ]
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE*'
schedule:
- cron: '20 5 * * 1'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
# Delta-V is pure Java/Kotlin — the legacy webapp (opennms-webapp)
# and Vue UI (ui/) were removed in #28 and subsequent cleanups.
# Running the javascript-typescript extractor here produced a hard
# failure on every PR ("CodeQL detected code written in Java/Kotlin
# and GitHub Actions, but not any written in JavaScript/TypeScript").
# When JS/TS source returns to this repo, re-add the language here.
language: [ 'java-kotlin' ]
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up Java JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: '21'
distribution: temurin
cache: maven
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- name: Configure Maven for GitHub Packages
run: |
mkdir -p ~/.m2
cat > ~/.m2/settings.xml << SETTINGS
<settings>
<servers>
<server>
<id>github-deltav-horizon</id>
<username>${GITHUB_ACTOR}</username>
<password>${PACKAGES_TOKEN}</password>
</server>
<server>
<id>github-deltav-ipc-contract</id>
<username>${GITHUB_ACTOR}</username>
<password>${PACKAGES_TOKEN}</password>
</server>
</servers>
</settings>
SETTINGS
env:
PACKAGES_TOKEN: ${{ secrets.HORIZON_READ_TOKEN }}
- name: Build all modules (Java)
run: ./mvnw -B -DskipTests install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"