Skip to content
Bitbucket

Pipelines: Scoped authentication for steps

Bitbucket Pipelines steps can now be limited to specific scopes, so the BITBUCKET_OAUTH_TOKEN variable only carries the permissions set for that step. It has been rolling out to Atlassian Cloud sites since 26 Oct 2026.

  • Rolling out since 26 Oct 2026
  • Medium impact
  • Admin review: api change

What it is

Improvement

yml defines the permissions for an individual step. The BITBUCKET_OAUTH_TOKEN environment variable is then restricted to those scopes. The limits apply to all git operations and API calls made in that step.

Developers

yml, and git operations and API calls in that step use only those scopes.

Written from Atlassian's release note and checked against it automatically. Atlassian's original stays the source of truth.

Before it lands

  1. Open bitbucket-pipelines.yml and add auth.system.scopes to the steps you want to restrict.
  2. Run the pipeline to apply the scoped permissions.

Where the rollout is

  1. First published Done
  2. Rollout starts Done

What changed

  1. First published by Atlassian

Atlas Bench began tracking Atlassian Cloud on 29 Oct 2026. Changes before that date are not in this history.

Find out who can reach what.

Fixed scope. The assessment starts at the identity layer: human and non-human access, the accounts nobody owns, and what has to be true before an agent gets one. You get the findings, the ownership gaps, and the order to close them in.