Skip to content

CodeQL Analysis

CodeQL Analysis #549

name: "CodeQL"
on:
schedule:
- cron: '0 8 * * 0' # https://crontab.guru/#0_8_*_*_0
workflow_dispatch:
jobs:
codeql:
name: CodeQL Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:java"
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: 'gradle'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run static analysis
run: ./gradlew build staticAnalysis -P staticAnalysisMarker
- uses: actions/upload-artifact@v3
with:
name: staticAnalysis
path: |
build/reports/staticAnalysis