chore(codeql): quick fix — use CodeQL v3 and Java 11 (manual build) #2
This file contains hidden or 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, pull_request] | |
| jobs: | |
| analyze: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 11 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '11' | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: java | |
| build-mode: manual | |
| - name: Make gradlew executable | |
| if: runner.os == 'Linux' | |
| run: chmod +x ./gradlew || true | |
| - name: Build (Gradle) | |
| run: ./gradlew assemble --no-daemon | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 |