name: "CodeQL" on: push: branches: [ 'develop', 'master', 'release_**' ] pull_request: # The branches below must be a subset of the branches above branches: [ 'develop' ] paths-ignore: [ '**/*.md', '.gitignore', '**/.gitignore', '.editorconfig', '.gitattributes', 'docs/**', 'CHANGELOG', '.github/ISSUE_TEMPLATE/**', '.github/PULL_REQUEST_TEMPLATE/**', '.github/CODEOWNERS' ] schedule: - cron: '6 10 * * 0' jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: [ 'java' ] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Use only 'java' to analyze code written in Java, Kotlin or both # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - name: Checkout repository uses: actions/checkout@v5 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} build-mode: manual - name: Set up JDK 8 uses: actions/setup-java@v5 with: java-version: '8' distribution: 'temurin' - name: Build run: ./gradlew build -x test --no-daemon - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: category: "/language:${{matrix.language}}"