> For the complete documentation index, see [llms.txt](https://docs.veedna.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veedna.com/sbom360/generate-an-sbom/source-code-management-scm-as-source/private-code-repositories/configure-bitbucket-credentials.md).

# Configure Bitbucket credentials

Bitbucket configuration requires "User Name" and "Access Token".

Bitbucket supports two types of access tokens depending on the access privileges. There are two types of tokens that can be generated based on your access rights to Bitbucket.

## Creating App password

Refer [Bitbucket Docs](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) to learn about creating App password.

* Go to [bitbucket.org](https://bitbucket.org/).
* Go to your repository.
* Select the Settings cog in the upper-right corner of the top navigation bar.
* Under **Personal settings**, select **Personal Bitbucket settings.**
* On the left sidebar, select App passwords.
* Select Create app password, select permissions and save.
* Set the "User Name" in Lineaje configuration to your Bitbucket username. Please note that bitbucket username may not be the same as your email id.
* Add the newly generated token as "Access Token" in Lineaje configuration.

## Creating Access Tokens

Refer [Bitbucket Docs](https://support.atlassian.com/bitbucket-cloud/docs/access-tokens/) to learn about creating Repository/Project/Workspace Access Tokens and [creating](https://support.atlassian.com/bitbucket-cloud/docs/create-a-repository-access-token/) the repository tokens.

* Go to [bitbucket.org](https://bitbucket.org/).&#x20;
* Go to your repository.
* Click Repository Settings.
* Select Access tokens.
* Press Create Repository Access Token.
* Create a token name.
* Select the repository token permissions.
* Click the Create button.
* Copy the token and save it somewhere memorable. The token will be inaccessible once you leave the page.
* As per the Bitbucket docs, set the "User Name" to "**x-token-auth**" in Lineaje configuration.
* Add the newly generated token as "Access Token" in Lineaje configuration.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.veedna.com/sbom360/generate-an-sbom/source-code-management-scm-as-source/private-code-repositories/configure-bitbucket-credentials.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
