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 756af71 commit dbd2ea7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ class CheckovScanService: Disposable {

}

if (scanTaskResult.errorReason.contains("ModuleNotEnabledError")) {
return true // skip module not enabled error
}

if (errorCode != 0 || scanTaskResult.errorReason.isNotEmpty()) {
project.service<CheckovErrorHandlerService>().scanningError(scanTaskResult, scanningSource, Exception("Error while scanning $scanningSource, exit code - $errorCode, error reason - ${scanTaskResult.errorReason}"), scanSourceType)
return false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class FullScanStateService(val project: Project) {
return ""
}

return "${invalidFilesSize}} files were detected as invalid.\n"
return "${invalidFilesSize} files were detected as invalid.\n"
}

fun wereAllFrameworksFinished(): Boolean {
Expand Down

0 comments on commit dbd2ea7

Please sign in to comment.