Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to push changes to sub-module from bitbucket pipelines..

I'm trying to push changes to a sub-module from a build pipeline, but I'm getting an unauthorized error on the "git push" call, even though I do have SSH key's setup... I'm thinking it might be because the SSH key it's using is for the parent module but not the sub-module.

git push

+ git pushUnauthorizedfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

1 answer

Make sure you are adding the SSH key to your Account's SSH keys, and not the submodule's Repo SSH Keys.  Repo keys are read-only, while your Account's SSH keys allow read/write.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,456 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you