Can you use a saved username and password for linking to a github repository

Ciaran Donoghue May 25, 2017

I am trying to link a username and password to a github repo using the shared credentials e.g. githubCredentials, which equals (myuser, mypassword) and then ave the user choose githubCredentials as the username and password to prevent people entering in the wrong password, which then locks the github account.

2 answers

0 votes
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 7, 2017

Github repository type doesn't support Shared credentials, follow and vote for https://jira.atlassian.com/browse/BAM-18413

But you can use Shared credentials for regular Git repository and provide Github repository url in settings

0 votes
Dave Chevell
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 7, 2017

Hi Ciaran,

Yes, you can do this (for a plain git repo)! If it's not working then something is going wrong.

If you have Two Factor Authentication (2FA) enabled on your GitHub account, then you may need to create a personal access token. There's also an Atlassian knowledge base article about this: Two-Factor Authentication (2FA) with GitHub in Bamboo

If you're not using 2FA, and there's no obvious error that tells you what's going wrong, then you can try reproducing the issue and checking Bamboo's log files to see if a more detailed error message is being sent from GitHub. Bamboo's main log file can be found here on disk:

$BAMBOO_HOME/logs/atlassian-bamboo.log

Good luck!

Cheers,

Dave

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events