Skip to content

WIP Add CodeQL Job

WIP Add CodeQL Job #6

Workflow file for this run

name: Build
on:
push:
branches: [ "*" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "main" ]
jobs:
analyze:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Cache Local Maven Repo
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('pom.xml') }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java
queries: security-and-quality
- name: Version
run: mvn --version
- name: Build
run: mvn -B compile
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3