Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
[BCE-27972] fix owasp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Demydenko committed Feb 14, 2024
1 parent b5db145 commit 72778ff
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.github.bridgecrewio.prismajetbrainsidea
pluginName = prismacloud-jetbrains-idea
pluginVersion = 1.0.13
pluginVersion = 1.0.14
pluginSinceBuild = 203
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/bridgecrew/CheckovResult.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data class CheckovResult(
var check_type: String,
val fixed_definition: String = "",
val cwe: ArrayList<String> = ArrayList(),
val owasp: String = "",
val owasp: List<String> = ArrayList(),
val metadata: Metadata? = null
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private val LOG = logger<InitializationService>()
class InitializationService(private val project: Project) {

private var isCheckovInstalledGlobally: Boolean = false
private var checkovVersion: String = "2.3.329"
private var checkovVersion: String = "3.2.20"

fun initializeProject() {
initializeCheckovScanService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class WeaknessCheckovResult(
codeBlock: List<List<Any>>,
val checkName: String,
val cwe: List<String>,
val owasp: String,
val owasp: List<String>,
val metadata: Metadata?) :
BaseCheckovResult(
category = Category.WEAKNESSES,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WeaknessDictionaryPanel(private val result: WeaknessCheckovResult, private
"Description" to result.description,
"Code" to extractCode(result),
"CWE(s)" to result.cwe.joinToString(", "),
"OWASP Top 10" to result.owasp,
"OWASP Top 10" to result.owasp.joinToString(", "),
"Data flow" to extractDataFlow(result)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fun createWeaknessCheckovResult(metadata: String): WeaknessCheckovResult {
{
"checkName": "Unsafe custom MessageDigest is implemented",
"cwe": ["CWE-327: Use of a Broken or Risky Cryptographic Algorithm"],
"owasp": "TBD",
"owasp": ["TBD"],
$metadata
"category": "WEAKNESSES",
"checkType": "SAST",
Expand Down

0 comments on commit 72778ff

Please sign in to comment.