CodeQL #52
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: | |
| branches: [ "main" ] | |
| schedule: | |
| - cron: "26 3 * * 5" | |
| jobs: | |
| analyze: | |
| name: "Analyze" | |
| runs-on: "ubuntu-latest" | |
| timeout-minutes: 360 | |
| permissions: | |
| security-events: write # required for all workflows | |
| actions: read # only required for workflows in private repositories | |
| contents: read # only required for workflows in private repositories | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ "java-kotlin" ] # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] - see https://aka.ms/codeql-docs/language-support | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs; queries: security-extended,security-and-quality | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: "21" | |
| distribution: "temurin" | |
| cache: maven | |
| - run: "./mvnw -e -B -U -V clean verify" | |
| - uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: "/language:${{matrix.language}}" |