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.
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
- Open bitbucket-pipelines.yml and add auth.system.scopes to the steps you want to restrict.
- Run the pipeline to apply the scoped permissions.
Where the rollout is
- First published Done
- Rollout starts Done
What changed
- First published by Atlassian
Atlas Bench began tracking Atlassian Cloud on 29 Oct 2026. Changes before that date are not in this history.