CodeQL #58
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: | |
| branches: [main] | |
| pull_request: | |
| schedule: | |
| - cron: "24 3 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: actions | |
| build-mode: none | |
| - language: javascript-typescript | |
| build-mode: none | |
| - language: java-kotlin | |
| build-mode: manual | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up GraalVM CE 25 | |
| if: matrix.language == 'java-kotlin' | |
| uses: graalvm/setup-graalvm@v1 | |
| with: | |
| java-version: "25" | |
| distribution: graalvm-community | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| cache: gradle | |
| - name: Set up Node 20 LTS | |
| if: matrix.language == 'java-kotlin' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "20" | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| - name: Build Java/Kotlin for CodeQL | |
| if: matrix.language == 'java-kotlin' | |
| run: ./gradlew --no-daemon --no-build-cache clean compileJava compileTestJava | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 |