CodeQL Analysis #596
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 | |
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@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: java | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v3 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:java" | |
static-analysis: | |
name: Static Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'gradle' | |
- name: Run static analysis | |
run: ./gradlew build staticAnalysis -P staticAnalysisMarker | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: staticAnalysis | |
path: | | |
build/reports/staticAnalysis |