Skip to content

Commit dac29b8

Browse files
updated flag name
1 parent 897ebdb commit dac29b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

internal/params/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ const (
289289
APISecurityType = "api-security"
290290
AIProtectionType = "AI Protection"
291291
CheckmarxOneAssistType = "Checkmarx One Assist"
292-
CheckmarxOneStandAloneType = "Checkmarx Developer Assist"
292+
CheckmarxDevAssistType = "Checkmarx Developer Assist"
293293
ContainersType = "containers"
294294
APIDocumentationFlag = "apisec-swagger-filter"
295295
IacType = "iac-security"

internal/services/realtimeengine/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func EnsureLicense(jwtWrapper wrappers.JWTWrapper) error {
3434
return errors.Wrap(err, "failed to check AIProtectionType engine allowance")
3535
}
3636

37-
devAssistAllowed, err := jwtWrapper.IsAllowedEngine(params.CheckmarxOneStandAloneType)
37+
devAssistAllowed, err := jwtWrapper.IsAllowedEngine(params.CheckmarxDevAssistType)
3838
if err != nil {
3939
return errors.Wrap(err, "failed to check Checkmarx Developer Assist engine allowance")
4040
}

internal/wrappers/jwt-helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (*JWTStruct) GetLicenseDetails() (licenseDetails map[string]string, err err
9393

9494
assistEnabled := containsIgnoreCase(jwtStruct.AstLicense.LicenseData.AllowedEngines, commonParams.CheckmarxOneAssistType) ||
9595
containsIgnoreCase(jwtStruct.AstLicense.LicenseData.AllowedEngines, commonParams.AIProtectionType)
96-
devAssistEnabled := containsIgnoreCase(jwtStruct.AstLicense.LicenseData.AllowedEngines, commonParams.CheckmarxOneStandAloneType)
96+
devAssistEnabled := containsIgnoreCase(jwtStruct.AstLicense.LicenseData.AllowedEngines, commonParams.CheckmarxDevAssistType)
9797

9898
licenseDetails["scan.config.plugins.cxoneassist"] = strconv.FormatBool(assistEnabled)
9999
licenseDetails["scan.config.plugins.cxonedevassist"] = strconv.FormatBool(devAssistEnabled)
@@ -197,7 +197,7 @@ func GetUniqueID() string {
197197
var uniqueID string
198198
// Check License first
199199
jwtWrapper := NewJwtWrapper()
200-
isAllowed, err := jwtWrapper.IsAllowedEngine("Checkmarx Developer Assist")
200+
isAllowed, err := jwtWrapper.IsAllowedEngine(commonParams.CheckmarxDevAssistType)
201201
if err != nil {
202202
logger.PrintIfVerbose("Failed to check engine allowance: " + err.Error())
203203
return ""

0 commit comments

Comments
 (0)