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

Commit

Permalink
sast no fail for customers without sast module
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolii-paloaltonetworks committed Feb 7, 2024
1 parent adbe819 commit 756af71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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.11
pluginVersion = 1.0.13
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,21 @@ abstract class CheckovScanCommandsService(val project: Project) {
val cmdByFramework = arrayListOf<String>()
cmdByFramework.addAll(baseCmds)
cmdByFramework.addAll(getCheckovCliArgsForExecCommand(getOutputFilePath(outputFilePath)))
cmdByFramework.addAll(getCheckovNoFailOnCrash(framework))

cmdByFramework.add("--framework")
cmdByFramework.add(framework)

return cmdByFramework
}
private fun getCheckovNoFailOnCrash(framework: String): ArrayList<String> {
val command = ArrayList<String>()
if (framework === "sast") {
command.add("--no-fail-on-crash")
}

return command
}

private fun getCheckovCliArgsForExecCommand(outputFilePath: String): ArrayList<String> {
val apiToken = settings?.getApiKey()
Expand Down

0 comments on commit 756af71

Please sign in to comment.