Does noseyparker scan ALL commits, or can we just scan main? #82
-
When noseyparker scans, does it read ALL secrets in all commits? If so, how do I limit to a particular commit or 'main'. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@munntjlx Yes, in its current incarnation ( There is a workaround you could use today: use
If this is done just so, there will be no I have a bunch of stuff in an internal version of Nosey Parker that I'll be merging back here. The ability to ignore Git history entirely will be added in the next Nosey Parker release. Also, I plan to add an option to request scanning only the |
Beta Was this translation helpful? Give feedback.
-
Update: 0.15 adds this: The scan command now supports a new --git-history={full,none} parameter to control whether encountered Git history will be scanned. This defaults to full, but specifying a value of none will cause Git history to be ignored. |
Beta Was this translation helpful? Give feedback.
@munntjlx Yes, in its current incarnation (
v0.14.0
and the latest unreleased bit onmain
), all found Git history is scanned. There is not a nice built-in way to change this behavior at present.There is a workaround you could use today: use
git archive
to export just the files from a desired commit to a directory tree (sans a .git directory), and have Nosey Parker scan that. For example:If this is done just so, there will be no
.git
directory in the input, no Git history to be found, and only the directory of checked-out files from$COMMIT_SHA_OF_…