Skip to content

ci: add codeql workflow #1

ci: add codeql workflow

ci: add codeql workflow #1

Workflow file for this run

name: CodeQL (daily)
on:
schedule:
# Daily at 01:30 (UTC)
- cron: '30 1 * * *'
workflow_dispatch:
push:
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout [${{ github.head_ref || github.ref_name }}]
uses: actions/checkout@v4
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
distribution: 'graalvm'
java-version: '17'
components: 'native-image'
cache: 'maven'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java
tools: latest
- name: Test
run: mvn -B verify
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2