CodeQL #228
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" | |
on: | |
push: | |
branches: [develop, main] | |
pull_request: | |
branches: [develop] | |
schedule: | |
- cron: '0 8 * * 0' | |
jobs: | |
analyse: | |
name: Analyse | |
runs-on: ubuntu-latest | |
# dependeabot has on push events only read-only access, but codeql requires write access | |
if: ${{ !(github.actor == 'dependabot[bot]' && contains(fromJSON('["push"]'), github.event_name)) }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'maven' | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: java | |
- name: Build | |
run: mvn -B compile | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |