-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.55 KB
/
Copy pathcodeql-analysis.yml
File metadata and controls
61 lines (52 loc) · 1.55 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
name: "CodeQL"
env:
MAVEN_OPTS: -Djava.awt.headless=true
MAVEN_VERSION: '3.9.12'
concurrency: # More info: https://stackoverflow.com/a/68422069/253468
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' ) && format('ci-master-{0}', github.sha) || format('ci-master-{0}', github.ref) }}
cancel-in-progress: true
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.properties'
schedule:
- cron: '26 18 * * 0'
workflow_dispatch:
jobs:
analyze:
name: "CodeQL Analyze"
runs-on: ubuntu-latest
# don't run on pull request merges to main from dependabot as these will always fail
if: ${{ github.actor != 'dependabot[bot]' }}
permissions:
security-events: write
actions: read
contents: read
packages: read
steps:
- name: "Checkout repository"
uses: actions/checkout@v7
- name: 'Set up JDK'
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ env.MAVEN_VERSION }}
- name: "Initialize CodeQL"
uses: github/codeql-action/init@v4
with:
languages: java-kotlin
build-mode: none
- name: 'Perform CodeQL Analysis'
uses: github/codeql-action/analyze@v4
with:
category: "/language:java-kotlin"