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

chore: Add websecurityscanner changes #8471

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 2 additions & 32 deletions java-websecurityscanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,18 @@ Java idiomatic client for [Cloud Security Scanner][product-docs].

## Quickstart

If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:

```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-websecurityscanner</artifactId>
</dependency>

```

If you are using Maven without BOM, add this to your dependencies:
If you are using Maven, add this to your pom.xml file:


```xml
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-websecurityscanner</artifactId>
<version>2.2.2</version>
<version>2.2.4</version>
</dependency>

```

If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.1.1')

implementation 'com.google.cloud:google-cloud-websecurityscanner'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,37 +53,37 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-websecurityscanner</artifactId>
<version>2.2.4-SNAPSHOT</version><!-- {x-version-update:google-cloud-websecurityscanner:current} -->
<version>2.2.5-SNAPSHOT</version><!-- {x-version-update:google-cloud-websecurityscanner:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-websecurityscanner-v1alpha</artifactId>
<version>0.89.4-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-websecurityscanner-v1alpha:current} -->
<version>0.89.5-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-websecurityscanner-v1alpha:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-websecurityscanner-v1beta</artifactId>
<version>0.89.4-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-websecurityscanner-v1beta:current} -->
<version>0.89.5-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-websecurityscanner-v1beta:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-websecurityscanner-v1</artifactId>
<version>2.2.4-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-websecurityscanner-v1:current} -->
<version>2.2.5-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-websecurityscanner-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-websecurityscanner-v1alpha</artifactId>
<version>0.89.4-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-websecurityscanner-v1alpha:current} -->
<version>0.89.5-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-websecurityscanner-v1alpha:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-websecurityscanner-v1beta</artifactId>
<version>0.89.4-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-websecurityscanner-v1beta:current} -->
<version>0.89.5-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-websecurityscanner-v1beta:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-websecurityscanner-v1</artifactId>
<version>2.2.4-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-websecurityscanner-v1:current} -->
<version>2.2.5-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-websecurityscanner-v1:current} -->
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public void createScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -201,6 +202,7 @@ public void getScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -319,6 +321,7 @@ public void updateScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -335,6 +338,7 @@ public void updateScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand Down Expand Up @@ -378,6 +382,7 @@ public void updateScanConfigExceptionTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand Down Expand Up @@ -702,6 +707,7 @@ public void getFindingTest() throws Exception {
.setVulnerableHeaders(VulnerableHeaders.newBuilder().build())
.setVulnerableParameters(VulnerableParameters.newBuilder().build())
.setXss(Xss.newBuilder().build())
.setXxe(Xxe.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void createScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockWebSecurityScanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -189,6 +190,7 @@ public void getScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockWebSecurityScanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -292,6 +294,7 @@ public void updateScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockWebSecurityScanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -604,6 +607,7 @@ public void getFindingTest() throws Exception {
.setVulnerableHeaders(VulnerableHeaders.newBuilder().build())
.setVulnerableParameters(VulnerableParameters.newBuilder().build())
.setXss(Xss.newBuilder().build())
.setXxe(Xxe.newBuilder().build())
.build();
mockWebSecurityScanner.addResponse(expectedResponse);

Expand Down
Loading