#156·deepsec

Prompt to add .deepsec/ to .gitignore during init

Author: yulinlinaCreated Aug 15, 2026Updated Aug 15, 2026

I just tried npx deepsec init on a repo and noticed the main artifact it creates is a .deepsec/ folder with scan state and findings.

Since that folder can contain vulnerability reports and possibly code excerpts or paths, it seems like something most users would not want committed, especially in shared repos or CI checkouts. It would be nice if init could detect a Git repository and ask whether to add .deepsec/ to .gitignore, or alternatively write a .deepsec/.gitignore that ignores everything inside.

For non-interactive use, something like --update-gitignore / --no-update-gitignore could make the behavior explicit. Small DX improvement, but it avoids an easy footgun.