Skip to content

CodeQL

CodeQL #7

Workflow file for this run

name: "CodeQL"
on:
schedule:
- cron: '0 13 * * 1' # At 1:00 PM UTC every Monday
pull_request:
paths:
- '.github/workflows/codeql.yaml'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize the CodeQL tools for scanning
uses: github/codeql-action/init@v3
with:
languages: 'java'
timeout-minutes: 5
- name: Set up JDK
uses: actions/setup-java@5896cecc08fd8a1fbdfaf517e29b571164b031f7
with:
java-version: "21"
distribution: "temurin"
server-id: github
- name: Java Build
run: |
mvn --batch-mode clean compile -s settings.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:java"
timeout-minutes: 10