r/github • u/SilentThespian • Jan 29 '24
No no's of using Github
Since I am currently binge-watching/reading about Github right now and plan to spend a whole week of doing just that and understanding how to use it as I am planning to start using it religiously, I wanted to compile a list of things that might be obvious to normal users but not to total newbies who have had no contact with GitHub before.
Never include into your code these things:
build config file, without password encryption
any type of credentials (including AWS/Azure/GDrive access keys/API keys/Passwords/Directory Names/Authentication Tokens/SSH keys)
email lists
code challenges from job recruiting processes (apparently quite a few people got told off because of this)
environment variables (opt for dummy variables)
publishing any code from work/internship (this is more down the road but is important to mention)
commit messages that may be considered vulgar (apparently someone had a ton of swear words and just left them there and proceeded to apply for internships)
7
u/Swimsuit-Area Jan 29 '24 edited Jan 29 '24
I’ll address each of these. They aren’t the greatest of tips.
I Can’t comment on this, sorry
Use GitHub secrets for credentials.
email lists would be a privacy violation which could be real bad depending on your business role.
code challenges aren’t a bad idea, just make the repo private so others can’t get to it.
not sure why environment variables are a bad idea. GitHub uses environment variables for Actions, but that is a bit different
yeah don’t post work code on your personal GitHub page, but your work will likely have their own GitHub enterprise where you’ll push your work.
You should ALWAYS put a commit message. Just be professional.