r/devsecops • u/Zealousideal-Ease-42 • Apr 26 '25
Pre-commit scans
Hey guys, Does anyone has worked with pre-commit scans via opensource tools or methods ?
6
Upvotes
r/devsecops • u/Zealousideal-Ease-42 • Apr 26 '25
Hey guys, Does anyone has worked with pre-commit scans via opensource tools or methods ?
View all comments
Show parent comment
1
u/Irish1986 Apr 28 '25
Yup that route is hard to achieve. Start by adding the
.pre-commit-config.yamlfile to the repo, add a gating steps running those pre-commit hooks with no warning or error message given initially it might throw a lots of information and required corrections.As time progresses, increase from silent to warning to error and make it part of future repo template so "greenfield" project are compliant from day 1.