Skip to content

Commit d55541f

Browse files
committed
Update admin/code_hosts/bitbucket_cloud.schema.json schema for v6.5.1211
1 parent f90b2c0 commit d55541f

File tree

1 file changed

+35
-16
lines changed

1 file changed

+35
-16
lines changed

docs/admin/code_hosts/bitbucket_cloud.mdx

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,27 +118,29 @@ Bitbucket Cloud connections support the following configuration options, which a
118118

119119
{/* SCHEMA_SYNC_START: admin/code_hosts/bitbucket_cloud.schema.json */}
120120
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
121-
{/* Last updated: Manual setup - will be automated via sourcegraph/sourcegraph releases */}
121+
{/* Last updated: 2025-07-01T23:25:34Z via sourcegraph/sourcegraph@v6.5.1211 */}
122122
```json
123+
// Authentication alternatives: username + appPassword
124+
123125
{
124126
// The workspace access token to use when authenticating with Bitbucket Cloud.
125127
"accessToken": null,
126128

127129
// 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,
129130
// Other example values:
130131
// - "https://api.bitbucket.org"
132+
"apiURL": null,
131133

132134
// The app password to use when authenticating to the Bitbucket Cloud. Also set the corresponding "username" field.
133135
"appPassword": null,
134136

135137
// 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+
},
137141

138142
// A list of repositories to never mirror from Bitbucket Cloud. Takes precedence over "teams" configuration.
139-
//
140143
// Supports excluding by name ({"name": "myorg/myrepo"}) or by UUID ({"uuid": "{fceb73c7-cef6-4abe-956d-e471281126bd}"}).
141-
"exclude": null,
142144
// Other example values:
143145
// - [
144146
// {
@@ -159,55 +161,72 @@ Bitbucket Cloud connections support the following configuration options, which a
159161
// "pattern": "^topsecretproject/.*"
160162
// }
161163
// ]
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,
162171

163172
// The type of Git URLs to use for cloning and fetching Git repositories on this Bitbucket Cloud.
164-
//
165173
// If "http", Sourcegraph will access Bitbucket Cloud repositories using Git URLs of the form https://bitbucket.org/myteam/myproject.git.
166-
//
167174
// 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"
169176
// Other example values:
170177
// - "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,
171182

172183
// Rate limit applied when making background API requests to Bitbucket Cloud.
173184
"rateLimit": {
174185
"enabled": true,
175186
"requestsPerHour": 7200
176187
},
177188

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+
178197
// 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").
182199
// 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-
//
184200
// 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.
185201
"repositoryPathPattern": "{host}/{nameWithOwner}",
186202

187203
// An array of team names identifying Bitbucket Cloud teams whose repositories should be mirrored on Sourcegraph.
188-
"teams": null,
189204
// Other example values:
190-
// - ["name"]
205+
// - [
206+
// "name"
207+
// ]
191208
// - [
192209
// "kubernetes",
193210
// "golang",
194211
// "facebook"
195212
// ]
213+
"teams": null,
196214

215+
// REQUIRED:
197216
// 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,
199217
// Other example values:
200218
// - "https://bitbucket.org"
219+
"url": null,
201220

202221
// The username to use when authenticating to the Bitbucket Cloud. Also set the corresponding "appPassword" field.
203222
"username": null,
204223

224+
// ⚠️ DEPRECATED: Deprecated in favour of first class webhooks. See https://sourcegraph.com/docs/admin/config/webhooks/incoming#deprecation-notice
205225
// A shared secret used to authenticate incoming webhooks (minimum 12 characters).
206226
"webhookSecret": null
207227
}
208228
```
209229
{/* SCHEMA_SYNC_END: admin/code_hosts/bitbucket_cloud.schema.json */}
210-
211230
## Configuration Notes
212231

213232
Bitbucket Cloud connections provide streamlined configuration for cloud-hosted repositories:

0 commit comments

Comments
 (0)