The truth about not doing open source work and a personal GitHub profile is kind of lie.
The department I worked for at AWS had a very easy to use open source approval process to open source work we did from scratch for a client as long as it didn’t have client information we could put it here after approval.
https://github.com/aws-samples
I was able to legally/ethically fork all of the work I submitted (MIT Licensed) to my own profile after I left. But, no one cared or even looked at my open source profile.
However, I was also a major contributor to a popular open source “AWS Solution” that was big in its niche.
https://aws.amazon.com/solutions/
That did lead to two interviews and one job offer in 2023 year.
Almost all of my projects and the “solution” are obsolete now. I was able to use most of them last year with some tweaking.