You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The workspace access token to use when authenticating with Bitbucket Cloud.
125
127
"accessToken": null,
126
128
127
129
// The API URL of Bitbucket Cloud, such as https://api.bitbucket.org. Generally, admin should not modify the value of this option because Bitbucket Cloud is a public hosting platform.
128
-
"apiURL": null,
129
130
// Other example values:
130
131
// - "https://api.bitbucket.org"
132
+
"apiURL": null,
131
133
132
134
// The app password to use when authenticating to the Bitbucket Cloud. Also set the corresponding "username" field.
133
135
"appPassword": null,
134
136
135
137
// If non-null, enforces Bitbucket Cloud repository permissions. This requires that there is an item in the [site configuration json](https://sourcegraph.com/docs/admin/config/site_config#auth-providers) `auth.providers` field, of type "bitbucketcloud" with the same `url` field as specified in this `BitbucketCloudConnection`.
136
-
"authorization": null,
138
+
"authorization": {
139
+
"identityProvider": null
140
+
},
137
141
138
142
// A list of repositories to never mirror from Bitbucket Cloud. Takes precedence over "teams" configuration.
139
-
//
140
143
// Supports excluding by name ({"name": "myorg/myrepo"}) or by UUID ({"uuid": "{fceb73c7-cef6-4abe-956d-e471281126bd}"}).
141
-
"exclude": null,
142
144
// Other example values:
143
145
// - [
144
146
// {
@@ -159,55 +161,72 @@ Bitbucket Cloud connections support the following configuration options, which a
159
161
// "pattern": "^topsecretproject/.*"
160
162
// }
161
163
// ]
164
+
"exclude": null,
165
+
166
+
// SSH cipher to use when cloning via SSH. Must be a valid choice from `ssh -Q cipher`.
167
+
"gitSSHCipher": null,
168
+
169
+
// SSH keys to use when cloning Git repo.
170
+
"gitSSHCredential": null,
162
171
163
172
// The type of Git URLs to use for cloning and fetching Git repositories on this Bitbucket Cloud.
164
-
//
165
173
// If "http", Sourcegraph will access Bitbucket Cloud repositories using Git URLs of the form https://bitbucket.org/myteam/myproject.git.
166
-
//
167
174
// If "ssh", Sourcegraph will access Bitbucket Cloud repositories using Git URLs of the form [email protected]:myteam/myproject.git. See the documentation for how to provide SSH private keys and known_hosts: https://sourcegraph.com/docs/admin/repo/auth#repositories-that-need-http-s-or-ssh-authentication.
168
-
"gitURLType": "http",
175
+
// Valid options: "http", "ssh"
169
176
// Other example values:
170
177
// - "ssh"
178
+
"gitURLType": "http",
179
+
180
+
// The maximum number of repos that will be deleted per sync. A value of 0 or less indicates no maximum.
181
+
"maxDeletions": 0,
171
182
172
183
// Rate limit applied when making background API requests to Bitbucket Cloud.
173
184
"rateLimit": {
174
185
"enabled": true,
175
186
"requestsPerHour": 7200
176
187
},
177
188
189
+
// An array of repository "projectKey/repositorySlug" strings specifying repositories to mirror on Sourcegraph.
190
+
// Other example values:
191
+
// - [
192
+
// "myproject/myrepo",
193
+
// "myproject/myotherrepo"
194
+
// ]
195
+
"repos": null,
196
+
178
197
// The pattern used to generate the corresponding Sourcegraph repository name for a Bitbucket Cloud repository.
179
-
//
180
-
// - "{host}" is replaced with the Bitbucket Cloud URL's host (such as bitbucket.org), and "{nameWithOwner}" is replaced with the Bitbucket Cloud repository's "owner/path" (such as "myorg/myrepo").
181
-
//
198
+
// - "{host}" is replaced with the Bitbucket Cloud URL's host (such as bitbucket.org), and "{nameWithOwner}" is replaced with the Bitbucket Cloud repository's "owner/path" (such as "myorg/myrepo").
182
199
// For example, if your Bitbucket Cloud is https://bitbucket.org and your Sourcegraph is https://src.example.com, then a repositoryPathPattern of "{host}/{nameWithOwner}" would mean that a Bitbucket Cloud repository at https://bitbucket.org/alice/my-repo is available on Sourcegraph at https://src.example.com/bitbucket.org/alice/my-repo.
183
-
//
184
200
// It is important that the Sourcegraph repository name generated with this pattern be unique to this code host. If different code hosts generate repository names that collide, Sourcegraph's behavior is undefined.
// An array of team names identifying Bitbucket Cloud teams whose repositories should be mirrored on Sourcegraph.
188
-
"teams": null,
189
204
// Other example values:
190
-
// - ["name"]
205
+
// - [
206
+
// "name"
207
+
// ]
191
208
// - [
192
209
// "kubernetes",
193
210
// "golang",
194
211
// "facebook"
195
212
// ]
213
+
"teams": null,
196
214
215
+
// REQUIRED:
197
216
// URL of Bitbucket Cloud, such as https://bitbucket.org. Generally, admin should not modify the value of this option because Bitbucket Cloud is a public hosting platform.
198
-
"url": null,
199
217
// Other example values:
200
218
// - "https://bitbucket.org"
219
+
"url": null,
201
220
202
221
// The username to use when authenticating to the Bitbucket Cloud. Also set the corresponding "appPassword" field.
203
222
"username": null,
204
223
224
+
// ⚠️ DEPRECATED: Deprecated in favour of first class webhooks. See https://sourcegraph.com/docs/admin/config/webhooks/incoming#deprecation-notice
205
225
// A shared secret used to authenticate incoming webhooks (minimum 12 characters).
0 commit comments