Add new linter initializer, so lints can be injected into linters #1502
Workflow file for this run
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: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
paths: | |
- '**/*.java' | |
schedule: | |
- cron: '15 0 15 * *' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
# SETUP BUILD ENVIRONMENT | |
- id: prepare-maven-build | |
name: Prepare Maven build | |
uses: sualeh/[email protected] | |
with: | |
java-version: 8 | |
- id: install-graphviz | |
name: Install Graphviz | |
uses: sualeh/[email protected] | |
# INIT CODEQL | |
- id: init-codeql | |
name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: java | |
# BUILD AND TEST | |
- id: build-test | |
name: Build all modules and run tests | |
shell: bash | |
run: | | |
# Build | |
mvn \ | |
--no-transfer-progress \ | |
--batch-mode \ | |
-DskipTests \ | |
clean package | |
# ANALYZE | |
- id: perform-codeql-analysis | |
name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:java" | |
- id: upload-codeql-results | |
name: Upload CodeQL results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: java_sarif | |
path: ./results/java.sarif | |
retention-days: 5 |