Skip to content

Commit

Permalink
Create codeql-analysis.yml (#1063)
Browse files Browse the repository at this point in the history
* Create codeql-analysis.yml

* Update codeql-analysis.yml
  • Loading branch information
hfhbd authored Dec 11, 2024
1 parent 5a2209b commit 4a34c4b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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

0 comments on commit 4a34c4b

Please sign in to comment.