Skip to content

CodeQL

CodeQL #1509

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "main" ]
schedule:
- cron: '23 0 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Edit kotlin version
run: sed -i 's/\(val kotlinVersion =\).*/\1 "2.0.20"/' build.gradle.kts
- name: Setup jdk11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"