name: "CodeQL" on: push: branches: [ main-ose ] pull_request: # The branches below must be a subset of the branches above branches: [ main-ose ] schedule: - cron: '22 10 * * 1' concurrency: group: codeql-${{ github.ref }} cancel-in-progress: true jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write steps: - name: Checkout repository uses: actions/checkout@v6 - uses: actions/setup-java@v5 with: distribution: temurin java-version: 21 - uses: gradle/actions/setup-gradle@v5 with: cache-encryption-key: ${{ secrets.gradle_encryption_key }} cache-read-only: true # gradle user home cache is generated by test jobs # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: languages: java-kotlin build-mode: manual # autobuild uses older JDK - name: Build # we must not use build cache here run: ./gradlew --no-daemon --configuration-cache app:assembleDebug - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: category: "/language:${{matrix.language}}"