Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ jobs:
key: ${{ runner.os }}-qodana-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-qodana-m2-
# Qodana's own Maven import intermittently skips downloading dependencies,
# leaving unresolved library roots that break the sanity check and produce
# bogus findings. Seed the repo it uses (/data/cache/.m2) ourselves.
# Seed the Maven repo Qodana's container uses (/data/cache/.m2) so jars
# resolve even when its own Maven import skips downloading.
- name: Warm Maven repository for Qodana
run: mvn -B -P ci -DskipTests dependency:go-offline -Dmaven.repo.local=${{ runner.temp }}/qodana/caches/.m2
- name: "Qodana Scan"
Expand All @@ -50,7 +49,11 @@ jobs:
# re-upload the pre-seeded .m2 every run; the explicit
# actions/cache step above manages the Maven repo instead
use-caches: false
args: --fail-threshold,0
# the baseline holds the 54 bogus findings emitted when Qodana's
# Maven import degrades to its static "preimport" model (only the 6
# explicitly-versioned pom deps resolve, so Lombok/Jackson-dependent
# inspections misfire); genuinely new findings still fail the gate
args: --fail-threshold,0,--baseline,qodana.baseline.sarif.json
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_2097965348 }}
QODANA_ENDPOINT: "https://qodana.cloud"
Loading
Loading