Skip to content

Commit 7c824e9

Browse files
zolamkgitbook-bot
authored andcommitted
GITBOOK-9819: NE-DNM:Bitbucket Cloud APP Password To API Token Notice
1 parent f80e786 commit 7c824e9

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docs/developer-tools/scm-integrations/organization-level-integrations/bitbucket-cloud.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ To review and adjust the pull request tests settings:
101101

102102
### Required permission scope for the Bitbucket Cloud integration
103103

104-
All the operations, whether triggered manually or automatically, are performed for a Bitbucket Cloud [service account](../../../implementation-and-setup/enterprise-setup/service-accounts/) that has its token (App Password) configured in the **Integration settings**.
104+
{% hint style="warning" %}
105+
Bitbucket Cloud has replaced App Passwords with API tokens\
106+
Existing credentials will continue to work normally until completely deprecated by Bitbucket Cloud [details here](https://www.atlassian.com/blog/bitbucket/bitbucket-cloud-transitions-to-api-tokens-enhancing-security-with-app-password-deprecation).\
107+
New integrations will now use API tokens.
108+
{% endhint %}
109+
110+
All the operations, whether triggered manually or automatically, are performed for a Bitbucket Cloud [service account](../../../implementation-and-setup/enterprise-setup/service-accounts/) that has its token (API Token) configured in the **Integration settings**.
105111

106112
For Snyk to perform the required operations on monitored repositories, such as reading manifest files on a frequent basis and opening fix or upgrade PRs, the integrated Bitbucket Cloud service account needs **Admin** permissions on the imported repositories.
107113

docs/developer-tools/scm-integrations/user-permissions-and-access-scopes.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,18 @@ The Snyk Bitbucket integrations use different access control mechanisms to conne
104104
To set up any Snyk Bitbucket integration, you must be a Bitbucket Workspace Admin.
105105
{% endhint %}
106106

107-
#### Bitbucket Cloud and Bitbucket Data Center/Server scopes
107+
#### Bitbucket Cloud:
108+
109+
| Action and purpose | API Token Scope Requirements |
110+
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
111+
| <p><strong>Daily / weekly tests:</strong><br>Read manifest files in private repos.</p> | `read:repository:bitbucket` |
112+
| <p><strong>Manual fix pull requests (triggered by the user):</strong><br>Create fix PRs in repos.</p> | <p><code>read:repository:bitbucket</code></p><p><code>write:repoistory:bitbucket</code></p><p><code>read:pullrequest:bitbucket</code></p><p><code>write:pullrequest:bitbucket</code></p> |
113+
| <p><strong>Automatic fix and upgrade pull requests:</strong><br>Create fix/upgrade PRs in repos.</p> | <p><code>read:repository:bitbucket</code></p><p><code>write:repoistory:bitbucket</code></p><p><code>read:pullrequest:bitbucket</code></p><p><code>write:pullrequest:bitbucket</code></p> |
114+
| <p><strong>Snyk tests on pull requests:</strong><br>Send PR status checks when a new PR is created or a PR is updated.</p> | <p><code>read:repository:bitbucket</code></p><p><code>write:repoistory:bitbucket</code></p><p><code>read:pullrequest:bitbucket</code></p><p><code>write:pullrequest:bitbucket</code></p> |
115+
| <p><strong>Snyk tests on pull requests (initial configuration):</strong><br>Add SCM webhooks to imported repos.</p> | <p><code>read:webhook:bitbucket</code></p><p><code>write:webhook:bitbucket</code></p> |
116+
| <p><strong>Importing new projects to Snyk:</strong><br>Lists available repos in the Bitbucket instance in the <strong>Add Projects</strong> screen.</p> | <p><code>read:project:bitbucket</code></p><p><code>read:workspace:bitbucket</code></p><p><code>read:account</code></p><p><code>read:user:bitbucket</code></p> |
117+
118+
#### Bitbucket Data Center/Server scopes
108119

109120
The following table details the required permission scopes in Bitbucket Cloud and Bitbucket Data Center/Serve&#x72;**:**
110121

0 commit comments

Comments
 (0)