Skip to content

Commit c68ff5b

Browse files
committed
sca scan not worked issue fixed
1 parent 6cff85c commit c68ff5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27860,7 +27860,7 @@ async function runVigilnzScan() {
2786027860
let scanTypesInList = []
2786127861
if (scanTypes?.trim() !== "") {
2786227862
scanTypesInList = scanTypes?.split(",")?.flatMap((type) => {
27863-
if (type === "sca") {
27863+
if (type?.toLowerCase() === "sca") {
2786427864
return "cve"
2786527865
} else if (type?.toLowerCase() === "secret scan") {
2786627866
return "secret"

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function runVigilnzScan() {
5151
let scanTypesInList = []
5252
if (scanTypes?.trim() !== "") {
5353
scanTypesInList = scanTypes?.split(",")?.flatMap((type) => {
54-
if (type === "sca") {
54+
if (type?.toLowerCase() === "sca") {
5555
return "cve"
5656
} else if (type?.toLowerCase() === "secret scan") {
5757
return "secret"

0 commit comments

Comments
 (0)