Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot retrieve OIDC token using bitbucket pipeline

Naveen Gabriel June 29, 2025

I was trying to connect bitbucket pipeline with GCP vm instance and could not do it. 

On series of debugging when I tried accessing the token using simple pipeline and still couldn't find out why token is not populated

Below is my simple pipeline : 

```

pipelines:
  default:
    - step:
        oidc: true
        script:
            - echo "This step will generate an OIDC token"
            - echo $BITBUCKET_STEP_OIDC_TOKEN # Access the token

```

 

Attaching the output from the pipeline 

pipeline_output.png

Does anyone know why token is not show ? What can be done to access this token ?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events