Files
aiturk-mobil/.github/workflows/codeql.yml
T
dependabot[bot]andM57 e56d4c9bfa chore: bump gradle/actions from 4 to 6 (#830)
* chore: bump gradle/actions from 4 to 6

Bumps [gradle/actions](https://github.com/gradle/actions) from 4 to 6.
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](https://github.com/gradle/actions/compare/v4...v6)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: use MIT basic cache provider in CodeQL setup-gradle

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M57 <hy4ri@users.noreply.github.com>
2026-08-06 11:20:10 +03:00

62 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@v7
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: true
cache-provider: basic # keep 100% MIT — avoid proprietary gradle-actions-caching
- 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}}"