Quality - CodeQL Scan #8
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: Quality - CodeQL Scan | |
| on: | |
| schedule: | |
| - cron: '0 10 * * 1' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| quality-codeql-scan: | |
| name: Quality - CodeQL Scan | |
| permissions: | |
| # required to upload analysis results | |
| security-events: write | |
| # required to fetch internal or private CodeQL packs | |
| packages: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: 'actions' | |
| build-mode: 'none' | |
| - language: 'java-kotlin' | |
| build-mode: 'manual' | |
| - language: 'python' | |
| build-mode: 'none' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup Gradle environment | |
| if: matrix.language == 'java-kotlin' | |
| uses: ./.github/actions/setup-gradle | |
| with: | |
| add-job-summary: 'never' | |
| disable-cache: 'true' | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| - if: matrix.language == 'java-kotlin' | |
| name: Build with Gradle | |
| run: ./gradlew assemble --no-daemon | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0 | |
| with: | |
| category: "/language:${{ matrix.language }}" |