Update codeql.yml #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'kotlin' ] # Specify Kotlin as the language | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' # Or your project's Java version | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 # Or the appropriate action for setting up Android SDK | |
- name: Gradle Build # Adjust build command as per your project | |
run: ./gradlew assembleDebug # Or your specific build task | |
- name: CodeQL Analyze | |
uses: github/codeql-action/analyze@v3 | |
with: | |
languages: ${{ matrix.language }} |