privscan

command
v0.187.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command privscan finds, and fixes, a person's own paths, account name and document names in text that is about to be published — or has been.

privscan [flags] FILE...                 before sending
privscan --fix FILE...                   rewrite them
privscan --repo owner/name               after sending
privscan --org go-tex                    the whole fleet

⛔⛔ WHY IT EXISTS. On 2026-11-09 three issues were filed whose bodies each carried `/Users/<account>/Documents/<project>/<file>.tex` — a home directory, an account name, a directory layout and the name of an unpublished document. Nobody noticed until the user asked "did you leak my name", and the rule they then set is the one this enforces: no leak of a name, nor of a path or file name, on a user's file system.

⛔ Editing a body afterwards does not undo it. GitHub keeps the original under "edited" for anyone who opens the history, which is why this command is meant to run BEFORE the send — as a gate inside the program that sends — and why --fix refuses to touch a forge body: the remedy there is to delete and re-create, not to rewrite.

⛔ It reads issue and pull-request COMMENTS, not only bodies. A code search does not index comments reliably, so the first sweep done by searching found one leak and could not have found a second in a comment. The repository-wide comment endpoints cost one paginated call each, which is cheaper than one call per issue and reads everything.

The findings do not reprint what they found unless --show asks: a refusal is printed where the body was going, and that is sometimes a public CI log.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL