Git Push to BitBucket from CircleCI with User Key


#1

I am trying to do a git push from CircleCI to BitBucket. I have added the user key manually from CircleCI to a ‘machine user’ BitBucket account following this workaround. However my project is managed by a team that I am a part of and so this git push fails because the ssh key has not been added to the actual team but to one user that has all the necessary permissions to write to repositories in BitBucket.

Is there any way to do a push to BitBucket from CircleCI without granting CircleCI the full access that the team has? I want CircleCI to be able to push and write only to repositories that I want it to, and not to all the repositories under the team.

Thanks in advance.


#2

Hi, did you accomplish this task?


#3