From 3a73c6bf87f61caf172aaad2813fd9fa0d3a3800 Mon Sep 17 00:00:00 2001 From: Andrei Kokorev Date: Fri, 27 Sep 2024 13:46:57 +0200 Subject: [PATCH] Introduce Qodana checks configuration (Part 2) (#126) * Added cloud token * Added inspection profile in qodana.yaml to include additional security check --- .teamcity/settings.kts | 16 +++++++++++++++- qodana.yaml | 5 +++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 qodana.yaml diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts index 2df3ddc..cc55e09 100644 --- a/.teamcity/settings.kts +++ b/.teamcity/settings.kts @@ -155,6 +155,10 @@ project { root(DslContext.settingsRoot) } + params { + param("env.QODANA_TOKEN", "credentialsJSON:74c92ed1-94f9-433a-8576-5e5185a7ad54") + } + triggers { vcs { branchFilter = """ @@ -168,6 +172,10 @@ project { hour = 8 } + /* We want this build to run regardless of the new changes as new vulnerabilities are being discovered all the time*/ + withPendingChangesOnly = false + enableQueueOptimization = false + branchFilter = "+:" } } @@ -187,7 +195,13 @@ project { linter = jvm { version = Qodana.JVMVersion.LATEST } - inspectionProfile = default() + cloudToken = "credentialsJSON:74c92ed1-94f9-433a-8576-5e5185a7ad54" + inspectionProfile = customProfile { + path = "qodana.yaml" + } + + reportAsTests = true + param("report-as-test-mode", "each-problem-is-test") } } diff --git a/qodana.yaml b/qodana.yaml new file mode 100644 index 0000000..4d2ab1a --- /dev/null +++ b/qodana.yaml @@ -0,0 +1,5 @@ +version: "1.0" +profile: + name: qodana.starter +include: + - name: VulnerableLibrariesGlobal