Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's value in enforcing checks on the server side to avoid people accidentally/maliciously merging code that doesn't pass said checks. Checks can be linters, security scanners, etc.


why on the server?!


Because then you protect against a compromised/misbehaving developer workstation. No matter what the individual developer does, the server will prevent a PR being merged if it doesn’t pass the server-enforced checks.

Running builds on a designated server would also protect against malware on a developer’s machine silently embedding itself into the resulting artifact and then deployed to production.


This was probably the question to ask before declaring it all as junk.


> Checks can be linters, security scanners, etc.

The first checks I setup are build and test. The rest is “extra”.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: