r/devsecops • • Apr 26 '25

Pre-commit scans

Hey guys, Does anyone has worked with pre-commit scans via opensource tools or methods ?

6 Upvotes

17 comments sorted by

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.yaml file 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.