First, don't make your password "solarwinds123". Second, don't post your password to github.
Could SolarWinds have still been hacked without those two incredible displays of incompetence? Probably. But there's no point worrying about more sophisticated attacks if you can't stop the less sophisticated. The first step to not getting hacked is literally to not be that incompetent.