Structs§
- Scanned
Read - Result of a file read with secret scanning applied.
Enums§
Functions§
- boundary_
mode_ effective - check_
secret_ path_ for_ tool - ensure_
ignore_ gitignore_ allowed - is_
secret_ like - jail_
and_ check_ path - read_
file_ lossy - Reads a file as lossy UTF-8, rejecting binary files. Uses O_NOFOLLOW on Unix to prevent TOCTOU symlink attacks.
- read_
file_ nofollow - Reads a file without following symlinks (TOCTOU protection). Falls back to regular read on non-Unix platforms.
- read_
file_ scanned - Reads a file and applies secret detection/redaction per config.