It's time to ditch Medium for good! 🌈⚡️

Introducing Devblog by Hashnode. Blog on your domain for FREE. Highly customizable and optimized for developers.

Learn more

Employer asking for GitHub password. How to handle this?


I'm going to respectfully disagree with the other answers. Jobs are hard to come by, and sometimes we have to stay in abusive relationships in order to put food on the table.

Your long term plan should be to leave this company, or get them to change their policies.

Your short term plan is this:

  1. Set up 2FA on GitHub. Use a token rather than SMS if possible.
  2. Change your GitHub password to a random string of letters, numbers, and symbols. Make sure it is different from every other password you use for other services.
  3. If your employer threatens you into handing it over, you can do so in relative safety.

Your employer will not be able to log in without your 2FA code, and you'll be able to check for failed login attempts.

To be clear - this is not a long term practical solution. If you work in a large company, you should contact their information security team. If you work in a regulated environment, you should discuss this with your regulators.

If you are being threatened or bullied, talk to your Trade Union to see how they can help.

And, of course, start looking for a new job.

Ultimately, no, you shouldn't have to hand over your password. But 2FA will give you some protection and some breathing room until you can find a better solution.

If they can ask for your private passwords , they can certainly write a policy which bars 2FA. The best move is to keep your personal and official accounts seperate.

Reply to this…

(28 answers) Take me to the question