From 4a34c4bf1e99d100d0ef9b7e5eb3e9992f4fa8f2 Mon Sep 17 00:00:00 2001 From: Philip Wedemann <22521688+hfhbd@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:14:54 +0100 Subject: [PATCH] Create codeql-analysis.yml (#1063) * Create codeql-analysis.yml * Update codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 00000000..61ad8286 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -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