Skip to content

Commit 493668f

Browse files
build(secrets): Update detect secrets configuration
1 parent f40cf31 commit 493668f

File tree

7 files changed

+86
-11
lines changed

7 files changed

+86
-11
lines changed

.secrets.baseline

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"exclude": {
3+
"files": "package-lock.json|credentials.json",
4+
"lines": null
5+
},
6+
"generated_at": "2020-03-03T19:34:45Z",
7+
"plugins_used": [
8+
{
9+
"name": "AWSKeyDetector"
10+
},
11+
{
12+
"name": "ArtifactoryDetector"
13+
},
14+
{
15+
"base64_limit": 4.5,
16+
"name": "Base64HighEntropyString"
17+
},
18+
{
19+
"name": "BasicAuthDetector"
20+
},
21+
{
22+
"name": "BoxDetector"
23+
},
24+
{
25+
"name": "CloudantDetector"
26+
},
27+
{
28+
"name": "Db2Detector"
29+
},
30+
{
31+
"name": "GheDetector"
32+
},
33+
{
34+
"hex_limit": 3,
35+
"name": "HexHighEntropyString"
36+
},
37+
{
38+
"name": "IbmCloudIamDetector"
39+
},
40+
{
41+
"name": "IbmCosHmacDetector"
42+
},
43+
{
44+
"name": "JwtTokenDetector"
45+
},
46+
{
47+
"keyword_exclude": null,
48+
"name": "KeywordDetector"
49+
},
50+
{
51+
"name": "MailchimpDetector"
52+
},
53+
{
54+
"name": "PrivateKeyDetector"
55+
},
56+
{
57+
"name": "SlackDetector"
58+
},
59+
{
60+
"name": "SoftlayerDetector"
61+
},
62+
{
63+
"name": "StripeDetector"
64+
},
65+
{
66+
"name": "TwilioKeyDetector"
67+
}
68+
],
69+
"results": {},
70+
"version": "0.13.0+ibm.9.dss",
71+
"word_list": {
72+
"file": null,
73+
"hash": null
74+
}
75+
}

.utility/bintray-release.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bintray {
3030
mavenCentralSync {
3131
sync = true
3232
user = System.getenv('SONATYPE_USER')
33-
password = System.getenv('SONATYPE_PASSWORD')
33+
password = System.getenv('SONATYPE_PASSWORD') //pragma: whitelist secret
3434
}
3535
}
3636
}

.utility/generate-index-html.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ echo '<!DOCTYPE html>
99
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1010
<meta name="viewport" content="width=device-width, initial-scale=1">
1111
<title>IBM Watson Developer Cloud</title>
12-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
12+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" crossorigin="anonymous">
1313
</head>
1414
<body>
1515
<div class="container">
@@ -20,7 +20,7 @@ echo '<!DOCTYPE html>
2020
<p><a href="https://www.ibm.com/watson/developer/">Info</a>
2121
| <a href="https://cloud.ibm.com/developer/watson/documentation">Documentation</a>
2222
| <a href="https://github.com/watson-developer-cloud/java-sdk">GitHub</a>
23-
| <a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.ibm.watson.developer_cloud%22%20a%3A%22java-sdk%22">Maven</a>
23+
| <a href="https://search.maven.org/search?q=g:com.ibm.watson">Maven</a>
2424
</p>
2525
2626
<p>Javadoc by branch/tag:</p>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"username": "username",
33
"password": "password"
4-
}
4+
}

discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialDetails.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface CredentialType {
3939
/** saml. */
4040
String SAML = "saml";
4141
/** username_password. */
42-
String USERNAME_PASSWORD = "username_password";
42+
String USERNAME_PASSWORD = "username_password"; //pragma: whitelist secret
4343
/** noauth. */
4444
String NOAUTH = "noauth";
4545
/** basic. */
@@ -127,7 +127,7 @@ private Builder(CredentialDetails credentialDetails) {
127127
this.publicKeyId = credentialDetails.publicKeyId;
128128
this.privateKey = credentialDetails.privateKey;
129129
this.passphrase = credentialDetails.passphrase;
130-
this.password = credentialDetails.password;
130+
this.password = credentialDetails.password; //pragma: whitelist secret
131131
this.gatewayId = credentialDetails.gatewayId;
132132
this.sourceVersion = credentialDetails.sourceVersion;
133133
this.webApplicationUrl = credentialDetails.webApplicationUrl;
@@ -280,7 +280,7 @@ public Builder passphrase(String passphrase) {
280280
* @return the CredentialDetails builder
281281
*/
282282
public Builder password(String password) {
283-
this.password = password;
283+
this.password = password; //pragma: whitelist secret
284284
return this;
285285
}
286286

@@ -374,7 +374,7 @@ protected CredentialDetails(Builder builder) {
374374
publicKeyId = builder.publicKeyId;
375375
privateKey = builder.privateKey;
376376
passphrase = builder.passphrase;
377-
password = builder.password;
377+
password = builder.password; //pragma: whitelist secret
378378
gatewayId = builder.gatewayId;
379379
sourceVersion = builder.sourceVersion;
380380
webApplicationUrl = builder.webApplicationUrl;

discovery/src/test/java/com/ibm/watson/discovery/v1/DiscoveryServiceIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ public void deleteUserDataIsSuccessful() {
16701670
public void credentialsOperationsAreSuccessful() {
16711671
String url = "https://login.salesforce.com";
16721672
String username = "[email protected]";
1673-
String password = "test_password";
1673+
String password = "test_password"; //pragma: whitelist secret
16741674
CredentialDetails credentialDetails = new CredentialDetails.Builder()
16751675
.credentialType(CredentialDetails.CredentialType.USERNAME_PASSWORD)
16761676
.url(url)

discovery/src/test/java/com/ibm/watson/discovery/v1/DiscoveryServiceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,11 +1218,11 @@ public void deleteUserDataIsSuccessful() throws InterruptedException {
12181218
@Test
12191219
public void testCredentialDetails() {
12201220
String clientId = "client_id";
1221-
String clientSecret = "client_secret";
1221+
String clientSecret = "client_secret"; //pragma: whitelist secret
12221222
String enterpriseId = "enterprise_id";
12231223
String organizationUrl = "organization_url";
12241224
String passphrase = "passphrase";
1225-
String password = "password";
1225+
String password = "password"; //pragma: whitelist secret
12261226
String privateKey = "private_key";
12271227
String publicKeyId = "public_key_id";
12281228
String siteCollectionPath = "site_collection_path";

0 commit comments

Comments
 (0)