From 0da121eb26d5b1079c5823566083f875e2310ff2 Mon Sep 17 00:00:00 2001 From: attiasas Date: Sun, 15 Sep 2024 15:19:11 +0300 Subject: [PATCH] update env name --- utils/consts.go | 2 +- utils/params.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"`