diff --git a/.changeset/old-shrimps-drive.md b/.changeset/old-shrimps-drive.md
new file mode 100644
index 00000000000..55d555fb385
--- /dev/null
+++ b/.changeset/old-shrimps-drive.md
@@ -0,0 +1,7 @@
+---
+"app-builder-lib": patch
+"builder-util-runtime": patch
+"builder-util": patch
+---
+
+docs: replaced 'access token' with 'app password' from BitbucketOptions
diff --git a/docs/configuration/publish.md b/docs/configuration/publish.md
index 8bd921d0d15..dba65c5e465 100644
--- a/docs/configuration/publish.md
+++ b/docs/configuration/publish.md
@@ -246,15 +246,15 @@ Define KEYGEN_TOKEN
environment variable.
BITBUCKET_TOKEN
environment variable.
For converting an app password to a usable token, you can utilize this
-convertAppPassword(owner: string, token: string) {
-const base64encodedData = Buffer.from(`${owner}:${token.trim()}`).toString("base64")
+convertAppPassword(owner: string, appPassword: string) {
+const base64encodedData = Buffer.from(`${owner}:${appPassword.trim()}`).toString("base64")
return `Basic ${base64encodedData}`
}
provider
“bitbucket” - The provider. Must be bitbucket
.
owner
String - Repository owner
-token
String | “undefined” - The access token to support auto-update from private bitbucket repositories.
+token
String | “undefined” - The app password (account>settings>app-passwords) to support auto-update from private bitbucket repositories.
username
String | “undefined” - The user name to support auto-update from private bitbucket repositories.
slug
String - Repository slug/name
channel
= latest
String | “undefined” - The channel.
diff --git a/packages/app-builder-lib/scheme.json b/packages/app-builder-lib/scheme.json
index 6ce77956850..772817075b8 100644
--- a/packages/app-builder-lib/scheme.json
+++ b/packages/app-builder-lib/scheme.json
@@ -334,7 +334,7 @@
},
"BitbucketOptions": {
"additionalProperties": false,
- "description": "Bitbucket options.\nhttps://bitbucket.org/\nDefine `BITBUCKET_TOKEN` environment variable.\n\nFor converting an app password to a usable token, you can utilize this\n```typescript\nconvertAppPassword(owner: string, token: string) {\nconst base64encodedData = Buffer.from(`${owner}:${token.trim()}`).toString(\"base64\")\nreturn `Basic ${base64encodedData}`\n}\n```",
+ "description": "Bitbucket options.\nhttps://bitbucket.org/\nDefine `BITBUCKET_TOKEN` environment variable.\n\nFor converting an app password to a usable token, you can utilize this\n```typescript\nconvertAppPassword(owner: string, appPassword: string) {\nconst base64encodedData = Buffer.from(`${owner}:${appPassword.trim()}`).toString(\"base64\")\nreturn `Basic ${base64encodedData}`\n}\n```",
"properties": {
"channel": {
"default": "latest",
@@ -390,7 +390,7 @@
]
},
"token": {
- "description": "The access token to support auto-update from private bitbucket repositories.",
+ "description": "The app password (account>>settings>app-passwords) to support auto-update from private bitbucket repositories.",
"type": [
"null",
"string"
diff --git a/packages/builder-util-runtime/src/publishOptions.ts b/packages/builder-util-runtime/src/publishOptions.ts
index 169b322b0b9..38c8135bd88 100644
--- a/packages/builder-util-runtime/src/publishOptions.ts
+++ b/packages/builder-util-runtime/src/publishOptions.ts
@@ -208,8 +208,8 @@ export interface KeygenOptions extends PublishConfiguration {
*
* For converting an app password to a usable token, you can utilize this
```typescript
-convertAppPassword(owner: string, token: string) {
- const base64encodedData = Buffer.from(`${owner}:${token.trim()}`).toString("base64")
+convertAppPassword(owner: string, appPassword: string) {
+ const base64encodedData = Buffer.from(`${owner}:${appPassword.trim()}`).toString("base64")
return `Basic ${base64encodedData}`
}
```
@@ -226,7 +226,7 @@ export interface BitbucketOptions extends PublishConfiguration {
readonly owner: string
/**
- * The access token to support auto-update from private bitbucket repositories.
+ * The app password (account>settings>app-passwords) to support auto-update from private bitbucket repositories.
*/
readonly token?: string | null