chore: copy paste code for co-pilot (#1198) #1621
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 ] | |
| schedule: | |
| - cron: '16 11 * * 5' | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ 'java', 'javascript' ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Setup Java 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| # --- Replaced Autobuild with explicit, controlled build steps --- | |
| - name: Print Java & Maven environment | |
| run: | | |
| java -version | |
| mvn -v | |
| echo "MAVEN_OPTS=$MAVEN_OPTS" | |
| - name: Clear Kotlin build-tools (force re-download) | |
| run: | | |
| rm -rf ~/.m2/repository/org/jetbrains/kotlin/kotlin-build-tools-impl || true | |
| - name: Build with Maven (disable Kotlin daemon) | |
| env: | |
| MAVEN_OPTS: "-Dkotlin.daemon.enabled=false -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false $MAVEN_OPTS" | |
| run: | | |
| mvn -B -V -DskipTests clean package | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 |