You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce AI licenses for realtime scans (AST-108317) (#1261)
* Enforce AI licenses for realtime scans (AST-108317)
* Refactor license check logic to use realtimeengine.EnsureLicense for improved clarity and error handling
* Return error from checkLicense function for better error handling
* Update mapstructure dependency to v1.5.1 for improved functionality
* Re-add mapstructure dependency for improved functionality
* Downgrade mapstructure dependency to v1.5.0 for compatibility reasons
* Enhance license checking in tests with custom EnsureLicense implementation and improved mock JWT wrapper
* fix test (AST-000)
* Reorder import statements in jwt-helper-mock.go for consistency
---------
Co-authored-by: cx-ben-alvo <[email protected]>
Copy file name to clipboardExpand all lines: internal/constants/errors/errors.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ const (
21
21
SarifInvalidFileExtension="Invalid file extension. Supported extensions are .sarif and .zip containing sarif files."
22
22
ImportSarifFileError="There was a problem importing the SARIF file. Please contact support for further details."
23
23
ImportSarifFileErrorMessageWithMessage="There was a problem importing the SARIF file. Please contact support for further details with the following error code: %d %s"
24
-
NoASCALicense="User doesn't have \"AI Protection\" license"
24
+
NoASCALicense="User doesn't have \"AI Protection\"or \"Checkmarx One Assist\"license"
25
25
FailedUploadFileMsgWithDomain="Unable to upload the file to the pre-signed URL. Try adding the domain: %s to your allow list."
26
26
FailedUploadFileMsgWithURL="Unable to upload the file to the pre-signed URL. Try adding the URL: %s to your allow list."
0 commit comments