Comment by WesolyKubeczek
24 days ago
What if I plant a hook on the engineer’s laptop that will slightly modify their commits in such a way that eventually I smuggle malicious code over? First, exfiltrate the code over to me, learn from previous commits, start poisoning. Stamped by the CI, no less. In the days of slop PRs thousands of lines each shouldn’t be even too hard.
The point is that at some point you do need to open the door and let the code in.
Wouldn’t most companies worth exploiting run some static analysis in the ci cd
The company should require both automated and human review of PRs. Mine does.
This is the standard at most professional companies but it's now becoming a problem due to AI and undisciplined people submitting 10,000 lines MRs.
mine mandates no security bugs in PR :)
"too long, LGTM, now buzz off"
Well, that's still a human review. If something breaks, you (as in: this reviewer) is at least partly responsible.