Skip to content

test: switch Micrometer compatibility workflow to upstream only #212

test: switch Micrometer compatibility workflow to upstream only

test: switch Micrometer compatibility workflow to upstream only #212

Workflow file for this run

---
name: CodeQL Security Analysis
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "29 13 * * 2" # Weekly Tuesday 13:29 UTC
permissions: {}
jobs:
analyze:
name: Analyze Java
runs-on: ubuntu-24.04
permissions:
actions: read # required for github/codeql-action/init to get workflow details
contents: read
security-events: write # required for github/codeql-action/analyze to upload SARIF
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: Set up Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: temurin
java-version: "25"
- name: Cache Maven repository
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-codeql-${{ hashFiles('**/pom.xml') }}
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
languages: java
tools: linked
queries: security-extended
# Do not use autobuild — the multi-module Maven structure requires explicit
# build invocation so that CodeQL can trace the compilation correctly.
# Do not use mise-action here — CodeQL needs to trace the raw Maven build.
- name: Build (CodeQL traces the build)
run: >
./mvnw clean compile
-P '!default'
-DskipTests
-Dcoverage.skip=true
-Dcheckstyle.skip=true
-Djavadoc.skip=true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
category: /language:java