Configure CxCredentials - checkmarx-ts/CxAnalytix GitHub Wiki

CxSAST Server Credentials Configuration

CxCredentials

An example of the unencryped credentials configuration element is shown below:

<CxCredentials Username="foo" Password ="bar" Token="" />

Note that at the first run of the program, this element is encrypted on platforms that support configuration section encryption. To change the configuration parameters, replace the encrypted element with the unencrypted element as shown above. Each attribute can be configured as follows:

Attribute Description
Username The Checkmarx SAST username to use when authenticating with the Checkmarx API.
Password The password for the user account to use when authenticating with the Checkmarx API. If there are special characters in the password, they need to be encoded. (e.g. & = &amp;)
Token (Optional) Not currently supported.

Note: Special Characters include <, >, &, ', "

Environment Variable Substitution

Configuration values provided for this section can embed a reference to an environment variable by delimiting the name of the variable with %. While this is typically a construct used on Windows, this applies to all platforms. Example:

<CxCredentials Username="%USER%" Password ="%PASSWORD%" />