Skip to content

CodeQL

CodeQL #109

Workflow file for this run

---
name: "CodeQL"
on:
push:
branches: [ "main", "release-*", "release/*" ]
paths-ignore:
- '**/*.md'
- '**/*.mdx'
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
pull_request:
branches: [ "main", "release-*", "release/*" ]
schedule:
- cron: '39 1 * * 3' # Wednesdays 01:39 UTC
workflow_dispatch: {}
# Prevent duplicate runs per ref; cancel older ones
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true # cancels in-progress runs for the same ref
permissions: {} # lock everything by default (least-privilege)
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 120
continue-on-error: true # Do not block PRs/pushes
permissions:
contents: read
security-events: write # required to publish to "Code scanning"
packages: read # required to fetch internal or private CodeQL packs
strategy:
fail-fast: false
matrix:
language: [ java, actions ] # single job, two languages
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: none
queries: +security-extended
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"