Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion .kokoro/presubmit/samples.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ env_vars: {

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-docs-samples-service-account,java-scc-samples-secrets"
value: "java-docs-samples-service-account"
}
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,18 @@ If you are using Gradle 5.x or later, add this to your dependencies
```Groovy
implementation platform('com.google.cloud:libraries-bom:25.0.0')


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

```Groovy
implementation 'com.google.cloud:google-cloud-securitycenter:2.5.1'
implementation 'com.google.cloud:google-cloud-securitycenter:2.5.2'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.5.1"
libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.5.2"
```

## Authentication
Expand Down
2 changes: 1 addition & 1 deletion google-cloud-securitycenter-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-shared-config</artifactId>
<version>1.3.0</version>
<version>1.3.2</version>
</parent>

<name>Google Cloud Security Command Center BOM</name>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-shared-config</artifactId>
<version>1.3.0</version>
<version>1.3.2</version>
</parent>

<developers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ public void testBulkMuteFindings() throws IOException {
// Get all findings in the source to check if they are muted.
ListFindingsPagedResponse response =
getAllFindings(
String.format("projects/%s/sources/%s",
PROJECT_ID, SOURCE.getName().split("/")[3]));
String.format("projects/%s/sources/%s", PROJECT_ID, SOURCE.getName().split("/")[3]));
for (ListFindingsResult finding : response.iterateAll()) {
Assert.assertEquals(finding.getFinding().getMute(), Mute.MUTED);
}
Expand Down