Capability library / Application package

Bitbucket package v1.0.0

Bitbucket Cloud: list workspace repositories, pull requests and pipelines, approve a pull request, and trigger a pipeline.

Review state: Reviewed · Distributable: yes, digest matches the release manifest

This page describes AAES Govern’s controls. AAES Operate has private-work permissions, operational reviews and recorded-spend limits; it does not include Govern. About AAES Govern

Before you enable this package

Keep api.bitbucket.org and bind WORKSPACE, REPO_SLUG and PULL_REQUEST_ID at registration. Bitbucket Data Center needs a separately reviewed package.

Read each action's effects and exclusions below. Before installation, also read the complete package requirements, including credential issuance, scope, expiry, and provider permissions. These are deployment prerequisites, not capabilities this package supplies.

Capabilities (5)

Each capability below is one registered operation. The complete package JSON includes its exact network destination allowlist. The repository stores it at packs/bitbucket.json and embeds a copy in the release binary.

Risk tiers. R0 is the minimum for reads. R2 is the minimum for write, create, update, execute, and invoke. R3 is the minimum for delete, send, pay, deploy, approve, share, and transfer. Operators can raise these levels. A minimum tier does not measure the operation's business or confidentiality risk.

On supported execution paths routed through AAES Govern, the R3 actions listed below require approval by an authorized person. Bypass paths and observation-only registrations are outside that guarantee. A provider's restoration feature does not remove this approval requirement. A provider-side approval, such as approving a GitLab merge request, is also separate from AAES Govern human approval. The capability matrix shows which execution paths are implemented, restricted to lab use, or refused at startup. Live compatibility must be tested in your environment.

Field guide. Endpoint is the service address and request method. Connector is the adapter that makes the call. Custody describes how the credential is held; the credential reference identifies the value to resolve. Data class sets handling requirements: pii means personal data, financial means financial records, and internal means internal organizational data.

bitbucket.repositories.read v1.0.0R0

Kind
tool
Action
read
Endpoint
GET https://api.bitbucket.org/2.0/repositories/WORKSPACE
Connector
http
Custody
customer_vault
Credential ref
secret-ref-bitbucket-api-token
Data class
pii

Read repositories.

List repositories in one workspace via GET /2.0/repositories/WORKSPACE.

The registered path covers the collection read only — single repository records, workspace membership, and workspace-level settings are not registered by this pack. WORKSPACE is a placeholder the deployment binds to a concrete workspace before enabling.

bitbucket.pullrequests.read v1.0.0R0

Kind
tool
Action
read
Endpoint
GET https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPO_SLUG/pullrequests
Connector
http
Custody
customer_vault
Credential ref
secret-ref-bitbucket-api-token
Data class
pii

Read pull requests.

List pull requests for one repository via GET /2.0/repositories/WORKSPACE/REPO_SLUG/pullrequests.

The registered path covers the collection read only — single pull request records, diffs, comments, and activity reads are not registered by this pack. WORKSPACE and REPO_SLUG are placeholders the deployment binds to concrete values before enabling.

bitbucket.pipelines.read v1.0.0R0

Kind
tool
Action
read
Endpoint
GET https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPO_SLUG/pipelines
Connector
http
Custody
customer_vault
Credential ref
secret-ref-bitbucket-api-token
Data class
pii

Read pipelines.

List pipelines for one repository via GET /2.0/repositories/WORKSPACE/REPO_SLUG/pipelines.

The registered path covers the collection read only — single pipeline records, step details, and log reads are not registered by this pack. WORKSPACE and REPO_SLUG are placeholders the deployment binds to concrete values before enabling.

bitbucket.pullrequest.approve v1.0.0R3

Kind
tool
Action
approve
Endpoint
POST https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPO_SLUG/pullrequests/PULL_REQUEST_ID/approve
Connector
http
Custody
customer_vault
Credential ref
secret-ref-bitbucket-api-token
Data class
internal

Approve pull request.

Approve a pull request via POST /2.0/repositories/WORKSPACE/REPO_SLUG/pullrequests/PULL_REQUEST_ID/approve. Bitbucket documents this call as recording the caller's approval, which typically counts toward merge checks — the capability is registered as approve at the minimum R3 tier, and approve is one of the designated actions requiring human approval.

On supported execution paths mediated by AAES Govern, irreversible actions require approval by an authorized person; this does not prevent calls through bypass or observation-only paths. A documented unapprove endpoint exists, but this pack does not register it, so reversing an approval is outside this pack and this pack claims no general reversibility. WORKSPACE, REPO_SLUG and PULL_REQUEST_ID are placeholders the deployment binds to concrete values before enabling.

bitbucket.pipeline.trigger v1.0.0R3

Kind
tool
Action
deploy
Endpoint
POST https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPO_SLUG/pipelines
Connector
http
Custody
customer_vault
Credential ref
secret-ref-bitbucket-api-token
Data class
pii

Trigger pipeline.

Trigger a pipeline for one repository via POST /2.0/repositories/WORKSPACE/REPO_SLUG/pipelines. Bitbucket documents that the request body carries the caller-chosen target (branch, tag, commit or pull request), selector and variables, and its Run-a-pipeline reference documents an on-demand pipeline form whose request body is a full caller-supplied YAML definition (sent as application/yaml, with the target metadata in query parameters) that overrides the repository's bitbucket-pipelines.yml for that run — so the caller chooses the commands that run, not merely which existing pipeline starts, and intended limits need a separate enforceable control.

That effect-widening, together with the provider's own description of pipelines as build, test and deploy infrastructure, is why the capability is registered as deploy at the minimum R3 tier, and deploy is one of the designated actions requiring human approval.

On supported execution paths mediated by AAES Govern, irreversible actions require approval by an authorized person; this does not prevent calls through bypass or observation-only paths. A triggered pipeline is outwardly visible, consumes billable build minutes, and any deployment it performs cannot be undone by this pack. WORKSPACE and REPO_SLUG are placeholders the deployment binds to concrete values before enabling.

Credential reference

The credential field names a reference rather than containing credential material. Packs are designed not to contain secrets; the format checks cover only known credential formats and cannot prove that arbitrary text contains no secrets. Installing a package registers its capabilities. Configure the provider credentials, endpoints, and network access, then test the integration in your environment before enabling it.

Reference
secret-ref-bitbucket-api-token
Custody
customer_vault
Injection
header (Authorization)

Configure the value and injection format specified in the package. Assign responsibility for credential rotation and revocation, restrict provider permissions, and keep credential material out of logs and responses.

Complete credential requirements

An Atlassian account API token for Bitbucket Cloud, held in the client's own secret manager. The stored material must be the complete Authorization header value: the word Basic, one separating space, then the base64 encoding of <atlassian-account-email>:<api-token>. Bitbucket documents that API tokens authenticate with HTTP Basic per RFC 2617 using the account email address as the username and the token as the password, that an expiry date is required at token creation with a maximum lifetime of one year, and that a token cannot be viewed or adjusted after creation — rotation means creating a new token and updating the stored value, and deleting a token in the Atlassian account settings invalidates that issued token.

App passwords are deprecated by the provider and must not be substituted. Request the least-privilege scopes: read:repository:bitbucket, read:pullrequest:bitbucket and read:pipeline:bitbucket cover the three read capabilities; pullrequest.approve additionally needs write:pullrequest:bitbucket and pipeline.trigger additionally needs write:pipeline:bitbucket — scopes do not imply one another, so grant the write scopes only where the R3 capabilities are enabled, and nothing broader. Renewal ownership sits with an external deployment process: the executor injects the stored value verbatim and performs no token lifecycle itself, and it must never substitute a different credential without an approved pack change.

Executor hygiene: the value must live only in executor memory for the lifetime of a call, must never be written to logs, traces or diagnostics, and must not appear in crash dumps; a deployment that cannot meet that bar must not enable the pack.

Resources

  • bitbucket-workspace (api, pii): https://api.bitbucket.org/2.0/repositories/WORKSPACE
  • bitbucket-repository (repo, pii): https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPO_SLUG

Technical package and review record

Complete provider requirements and exclusions

The registered host is api.bitbucket.org (Bitbucket Cloud). Bitbucket Data Center is a different product with its own host and API surface: this pack does not cover it, and a Data Center deployment needs its own separately reviewed pack rather than a host substitution into this one. WORKSPACE, REPO_SLUG and PULL_REQUEST_ID in the endpoint paths are placeholders the deployment substitutes with concrete values at registration time, before enabling: the pack is installed with the concrete paths it will actually call, not rebound per request.

This pack registers only endpoints the public Bitbucket Cloud REST API documentation describes: listing a workspace's repositories, listing a repository's pull requests, listing a repository's pipelines, approving a pull request, and triggering a pipeline.

Documented exclusions: pull request create, update, merge, decline, request-changes and comments (a comment notifies watchers and is judged by its documented effect), pipeline stop, pipeline schedules, deployment endpoints, repository variables, runners, SSH keys, webhooks, branch restrictions, and every endpoint outside the registered list; each addition is a pack change and requires its own review.

Approval classification: reads sit at the minimum R0 tier. pipeline.trigger is registered as deploy at the minimum R3 tier because Bitbucket documents that the request body carries the caller-chosen target (branch, tag, commit or pull request), selector and variables, and its Run-a-pipeline reference documents an on-demand pipeline form whose request body is a full caller-supplied YAML definition (sent as application/yaml, with the target metadata in query parameters) that overrides the repository's bitbucket-pipelines.yml for that run — so the caller chooses the commands that run, not merely which existing pipeline starts, and intended limits need a separate enforceable control; deploy is one of the designated actions requiring human approval. pullrequest.approve is registered as approve at the minimum R3 tier because the approval is recorded under the caller's identity and typically counts toward merge checks, and approve is one of the designated actions requiring human approval.

AAES has not been certified by Atlassian; review and test this configuration; it is not a vendor guarantee.

Download the complete package JSON for exact network allowlists, credential requirements, exclusions, and setup notes. Read these requirements before installation.

The full documentation review record is supplied in the evaluation package. The evaluation package runs in your environment and comes only with the paid design partnership. This page reproduces the source links and review block; the full record is available for evaluation. Discuss a design partnership to inspect it before installation.

Review block

This section reproduces the review block recorded in the pack file. The evidence and approval record is separate: for a reviewed pack, it is in the evaluation materials and in the release binary's embedded assets.

Review completed: 2026-09-22

5 sources, retrieved 2026-09-21

Current documentation links are navigation aids. They do not change the package, its historical sources or its review date. Review dates describe a documentation review, not a live integration test. No package is provider-endorsed or yet tested against a live provider tenant.

Release identity

SHA-256 of the pack file bytes: f05b9c31196dabfab4e5f0453ea580d2484437fde5bd3ecda8c3a82eea2f2572

Distributable: yes, digest matches the release manifest. Editing a package changes its release identity. A deployment plan checks its own file digests; it does not restore reviewed status or authenticate approval.