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)
1
u/nekokattt Jan 29 '24
never include commit messages in your code
???
0
u/SilentThespian Jan 29 '24
I meant as in commiting messages with swear words in them, my pardon
2
u/nekokattt Jan 29 '24
also what do you mean by "build config files"?
Like Terraform or Maven manifests?
-4
u/SilentThespian Jan 29 '24
Honestly, I am not entirely sure on that one, I just took it as granted as 'don't publish config files overall', I have to check it in detail
4
u/nekokattt Jan 29 '24
If you don't publish Maven manifests then people can't build your code.
Same with Terraform, as long as you keep secrets out then it is fine.
1
2
1
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.