Skip to content

CI: Re-enable CodeQL with lightweight Fdroid build (JDK17, compile-only) #3

CI: Re-enable CodeQL with lightweight Fdroid build (JDK17, compile-only)

CI: Re-enable CodeQL with lightweight Fdroid build (JDK17, compile-only) #3

Workflow file for this run

name: CodeQL (PR fast minimal)
on:
pull_request:
paths-ignore:
- '**/*.md'
- 'docs/**'
- '**/*.png'
- '**/*.jpg'
workflow_dispatch:
jobs:
codeql-pr-fast:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
# 2. JDK17
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
# 4. Init CodeQL(light query)
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java-kotlin
queries: security-extended
ram: 6144
threads: 2
# 5. 軽量ビルド(APK生成なし / Play依存なし)
- name: Compile only (Fdroid Debug)
run: |
./gradlew --no-daemon --max-workers=2 -x test -x lint :AnkiDroid:compileFdroidDebugSources
# 6. CodeQL Analysis
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:java-kotlin"