Skip to content

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

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

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

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:
# 1. リポジトリ取得
- name: Checkout repository
uses: actions/checkout@v4
# 2. JDK 17 セットアップ(安定動作用)
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
# 3. CodeQL初期化(軽量クエリ)
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java-kotlin
queries: security-extended # 軽量かつ主要チェックのみ
ram: 6144
threads: 2
# 4. 軽量ビルド(APK生成なし・Play Debugフレーバー)
- name: Compile only (Play Debug)
run: |
./gradlew --no-daemon --max-workers=2 -x test -x lint :AnkiDroid:compilePlayDebugSources
# 5. CodeQL解析実行
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:java-kotlin"