CodeQL Analysis Workflow #486
This file contains 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 Analysis Workflow | |
on: | |
# allows this workflow to be called from another workflow | |
workflow_dispatch: | |
workflow_call: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
schedule: | |
- cron: '29 9 * * 5' | |
jobs: | |
analyze: | |
name: Analyze (${{ matrix.language }}) | |
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | |
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} | |
permissions: | |
security-events: write | |
packages: read | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- language: java-kotlin | |
build-mode: autobuild | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Gradle properties | |
run: | | |
echo "kotlin.daemon.jvmargs=-Xmx2g" >> gradle.properties | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
build-mode: ${{ matrix.build-mode }} | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:${{matrix.language}}" |