Skip to content

Create codeql-analysis.yml (#1063) #3

Create codeql-analysis.yml (#1063)

Create codeql-analysis.yml (#1063) #3

name: "CodeQL"
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GradleEncryptionKey }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: kotlin
- name: Build with Gradle
run: ./gradlew assemble
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2