diff --git a/utils/getconfiguration.go b/utils/getconfiguration.go index f9649dc9b..429ff7ec3 100644 --- a/utils/getconfiguration.go +++ b/utils/getconfiguration.go @@ -482,7 +482,8 @@ func extractVcsProviderFromEnv() (vcsutils.VcsProvider, error) { func SanitizeEnv() error { for _, env := range os.Environ() { - if !strings.HasPrefix(env, "JF_") { + // We leave JF_SAST_DEFAULT_SCAN_MODE as this must be populated as env var to the Sast scanner + if !strings.HasPrefix(env, "JF_") || strings.HasPrefix(env, "JF_SAST") { continue } envSplit := strings.Split(env, "=")