diff --git a/utils/consts.go b/utils/consts.go index 1f5727279..4e1e005f9 100644 --- a/utils/consts.go +++ b/utils/consts.go @@ -60,7 +60,7 @@ const ( DepsRepoEnv = "JF_DEPS_REPO" MinSeverityEnv = "JF_MIN_SEVERITY" FixableOnlyEnv = "JF_FIXABLE_ONLY" - DetectionOnlyEnv = "JF_SKIP_FIX_CREATION" + DetectionOnlyEnv = "JF_SKIP_AUTOFIX" AllowedLicensesEnv = "JF_ALLOWED_LICENSES" WatchesDelimiter = "," diff --git a/utils/params.go b/utils/params.go index 0bf8ff671..689b9edca 100644 --- a/utils/params.go +++ b/utils/params.go @@ -132,7 +132,7 @@ func (p *Project) setDefaultsIfNeeded() error { type Scan struct { IncludeAllVulnerabilities bool `yaml:"includeAllVulnerabilities,omitempty"` FixableOnly bool `yaml:"fixableOnly,omitempty"` - DetectionOnly bool `yaml:"detectOnly,omitempty"` + DetectionOnly bool `yaml:"skipAutoFix,omitempty"` FailOnSecurityIssues *bool `yaml:"failOnSecurityIssues,omitempty"` AvoidPreviousPrCommentsDeletion bool `yaml:"avoidPreviousPrCommentsDeletion,omitempty"` MinSeverity string `yaml:"minSeverity,omitempty"`