Files
aiturk-mobil/.github/workflows/codeql.yml
T
M57andM57 522b01af48 ci: add CodeQL static analysis workflow (#748)
* ci: add CodeQL static analysis workflow

* ci: use CodeQL bundle v2.26.2 to support Kotlin 2.4.10

---------

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
2026-07-30 15:21:38 +03:00

61 lines
1.4 KiB
YAML

name: "CodeQL Analysis"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '30 3 * * 1' # Runs at 03:30 UTC every Monday
permissions:
contents: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java-kotlin' ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
validate-wrappers: true
- name: Grant Execute Permission for Gradlew
run: chmod +x gradlew
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: manual
tools: https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.26.2/codeql-bundle-linux64.tar.gz
- name: Build Codebase (Compile Only)
run: |
./gradlew compileDebugSources --no-daemon --no-build-cache
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"