diff --git a/internal/commands/process/settings/settings.go b/internal/commands/process/settings/settings.go index b3b7261df..3d730ab45 100644 --- a/internal/commands/process/settings/settings.go +++ b/internal/commands/process/settings/settings.go @@ -364,7 +364,7 @@ func FromOptions(opts flag.Options, versionMeta *version_check.VersionMeta) (Con } if config.Scan.DiffBaseBranch != "" { - if config.Report.Report != flag.ReportSecurity && config.Report.Report != flag.ReportSaaS { + if !slices.Contains([]string{flag.ReportSecurity, flag.ReportSaaS}, config.Report.Report) { return Config{}, errors.New("diff base branch is only supported for the security report") } }