> "do you have a github account?". No, I've been highly motivated not to.
That is a shame, and given the extent to which most businesses and groups are built on Open Source, the fact that your situation is not in any way unique (to your employer or at large) is what makes it IMHO much worse.
I ran into technical limitations with my testing framework at one point where I realized that it was going to make my work 10x more complicated if I couldn't simply take some of the common libraries that I had factored out of my apps, and make them public.
You know what I'm saying, the CI machine can't run without a machine account if "bundle install" requires a valid SSH account. Getting the SSH account inside of a Docker container was an exercise of Rube Goldberg proportions, I eventually did it, but doubt strongly I would have ever been able to get anyone else to understand how or why that solution worked.
So I did the rational thing and published a few libraries to simplify the stack. 6 months later, we received a message from the head of InfoSec who was "very disappointed" after looking at our GitHub account.
Nobody competes with us. There was no risk of helping the competition. We're not in the business of software development (though we had an entire department of folks whose job title was Application Developer, so figure that one out...)
Their concern wasn't that it was against an NDA or that we hadn't gotten it approved, it was that threat-actors will take any signal they can about our internal stuff and turn it into an attack vector. Given what specifically it was that we had published, this was beyond irrational. I told them "it's 2020 and this is a backwards position to be holding in 2020." Shine a light, get more eyes on it.
There is no danger and I'm glad that someone looked at my code, I said, even if only for a few minutes – which I know would not have happened at all if we kept the repo internal.
Yeah, I don't work there anymore (not specifically because of this incident, but it was a contributing factor to me leaving voluntarily, without a doubt.)