Skip to content

CodeQL

CodeQL #681

name: "CodeQL"
on:
push:
branches: [ develop, main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ develop ]
schedule:
- cron: '15 19 * * 6'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: true
matrix:
language: [ 'java', 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Setup Java
if: matrix.language == 'java'
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: maven
- name: Setup pnpm
if: matrix.language == 'javascript'
uses: pnpm/action-setup@v2
with:
version: latest
- name: Build with Maven
if: matrix.language == 'java'
run: mvn -B package -Pdebug -Dmaven.test.skip=true
- name: Build with pnpm
if: matrix.language == 'javascript'
run: |
cd frontend
pnpm install
pnpm run generate
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2