Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASA 8392 #215

Merged
merged 17 commits into from
Jun 4, 2024
Merged

ASA 8392 #215

merged 17 commits into from
Jun 4, 2024

Conversation

vishalhcl-5960
Copy link
Collaborator

https://jira02.hclpnp.com/browse/ASA-8392 - As a DevOps Engineer, I want to automate DAST Scan execution in AppScan 360 via HCL AppScan Jenkins Plugin.

@vishalhcl-5960 vishalhcl-5960 requested a review from kripajoym June 3, 2024 10:12
@@ -22,8 +22,7 @@ error.threshold.invalid=Invalid entry. Enter an integer value.
error.malformed.url=Malformed URL {0}.
error.server.unavailable=AppScan plugin encountered an unexpected error while connecting to AppScan on Cloud.
error.mobile.analyzer=Incorrect user input. The legacy Mobile Analyzer technology is no longer supported, we recommend using our Static Analyzer scanning for Mobile Applications.
error.dynamic.AppScan360= Dynamic Analysis is available for AppScan on Cloud only.
error.dynamic.analyzer.AppScan360= HCL AppScan task failed: Dynamic analysis (DAST) is available in AppScan on Cloud only.
error.presence.AppScan360= Presence is available for AppScan on Cloud only.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in or For ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be "in".

public boolean isAppScan360(){
String url = m_credentials.getUrl();
return url != null && !url.isEmpty() && !url.contains("appscan.com");
@Override
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required to be override ? Can we add this is only in Jenkins Auth.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we are now using the isAppScan360() method in the appscan-plugin instead of the SDK. I will not go with overriding this method.

@@ -9,6 +9,7 @@
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.net.Proxy;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this import required? there is no changes related to Proxy

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this import.

@@ -325,17 +326,22 @@ public FormValidation doCheckScanFile(@QueryParameter String scanFile) {
return FormValidation.ok();
}

public FormValidation doCheckTarget(@QueryParameter String target,@RelativePath("..") @QueryParameter String credentials, @AncestorInPath ItemGroup<?> context, @QueryParameter String presenceId) {
public FormValidation doCheckTarget(@QueryParameter String target,@RelativePath("..") @QueryParameter String credentials, @AncestorInPath ItemGroup<?> context, @QueryParameter String presenceId) throws IOException {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of the Formvalidations are throwing IO Exception why is it required ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the IO exception.

@vishalhcl-5960 vishalhcl-5960 merged commit d0f148f into jenkinsci:ASA-8392 Jun 4, 2024
1 check passed
vishalhcl-5960 added a commit that referenced this pull request Jun 17, 2024
* ASA 8392 (#215)
* DAST-A360
* Copyright updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants