Skip to content

Commit

Permalink
rename disableSecrets to noSecrets for backwards compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
michaela-perrotta committed Nov 13, 2024
1 parent 7536c8b commit cc8b439
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/hcl/appscan/sdk/scanners/sast/SAClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ private List<String> getClientArgs(Map<String, String> properties) {
args.add(properties.get(SCAN_SPEED));
}
}
if(properties.containsKey(SECRETS_DISABLED) || System.getProperty(SECRETS_DISABLED) != null) {
args.add(OPT_SECRETS_DISABLED);
if(properties.containsKey(NO_SECRETS) || System.getProperty(NO_SECRETS) != null) {
args.add(OPT_NO_SECRETS);
}
if(properties.containsKey(SECRETS_ENABLED) || System.getProperty(SECRETS_ENABLED) != null) {
args.add(OPT_SECRETS_ENABLED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public interface SASTConstants {
String OPEN_SOURCE_ONLY = "openSourceOnly"; //$NON-NLS-1$
String SOURCE_CODE_ONLY = "sourceCodeOnly"; //$NON-NLS-1$
String SECRETS_ENABLED = "enableSecrets"; //$NON-NLS-1$
String SECRETS_DISABLED = "disableSecrets"; //$NON-NLS-1$
String NO_SECRETS = "noSecrets"; //$NON-NLS-1$
String SECRETS_ONLY = "secretsOnly"; //$NON-NLS-1$
String SCAN_SPEED = "scanSpeed"; //$NON-NLS-1$
String OPT_SCAN_SPEED = "-s"; //$NON-NLS-1$
Expand All @@ -57,7 +57,7 @@ public interface SASTConstants {
String OPT_SOURCE_CODE_ONLY = "-sco"; //$NON-NLS-1$
String OPT_STATIC_ANALYSIS_ONLY = "-sao"; //$NON-NLS-1$
String OPT_SECRETS_ENABLED = "-es"; //$NON-NLS-1$
String OPT_SECRETS_DISABLED = "-ds"; //$NON-NLS-1$
String OPT_NO_SECRETS = "-ns"; //$NON-NLS-1$
String OPT_SECRETS_ONLY = "-so"; //$NON-NLS-1$
String OPT_ACCEPTS_SSL = "-acceptssl"; //$NON-NLS-1$

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public interface IModelXMLConstants {
String A_SOURCE_CODE_ONLY = "sourceCodeOnly"; //$NON-NLS-1$
String A_STATIC_ANALYSIS_ONLY = "staticAnalysisOnly"; //$NON-NLS-1$
String A_SECRETS_ENABLED = "enableSecrets"; //$NON-NLS-1$
String A_SECRETS_DISABLED = "disableSecrets"; //$NON-NLS-1$
String A_NO_SECRETS = "noSecrets"; //$NON-NLS-1$
String A_SECRETS_ONLY = "secretsOnly"; //$NON-NLS-1$

//Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void visit(List<ISASTTarget> targets, boolean isThirdPartyScanningEnabled
}

if (isSecretsScanningDisabled) {
m_config.setAttribute(A_SECRETS_DISABLED, "true");
m_config.setAttribute(A_NO_SECRETS, "true");
}
if (isSecretsScanningEnabled) {
m_config.setAttribute(A_SECRETS_ENABLED, "true");
Expand Down

0 comments on commit cc8b439

Please sign in to comment.