Skip to content

CodeQL

CodeQL #21

Workflow file for this run

# CodeQL static analysis for the Java sources.
# Results appear under the repository's "Security > Code scanning" tab.
name: CodeQL
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
# Weekly run so new CodeQL queries are applied to unchanged code too.
- cron: '27 4 * * 1'
permissions:
contents: read
jobs:
analyze:
name: Analyze (java)
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
languages: java-kotlin
build-mode: manual
- name: Set up JDK
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
with:
distribution: temurin
java-version: '17'
cache: maven
# Manual build so CodeQL traces the exact compilation. Skip tests to keep the analysis build fast.
- name: Build
run: mvn -B -DskipTests package --file pom.xml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
category: "/language:java-kotlin"