Together, these components create a highly effective attack that remains undetected during both generation and review phases.
That is a bit too overblown. If your "review" phase is only once the code is committed, pushed, and it's done through the GitHub online interface then sure, but I'd argue in that case that your entire development process needs to be overhauled. Who commits without reviewing what you are including into the commit?! An extra script tag with a huge url like that should jump out at your eyes, scream in your face "this doesn't feel right", etc.
At some point people need to be responsible with what they're doing. There's no software that can fix laziness nor ignorance.