Audit found the guard silently uploads real credentials: - patterns were case-sensitive: .ENV / KEY.PEM / ID_RSA / Server.Key all passed through on macOS/Windows. New ignore.CompileFold compiles the guard deny-list case-insensitively (.devignore stays case-sensitive, gitignore semantics). - added *.env and .envrc (prod.env / config.env hold the same secrets as .env). - .aws/credentials and .ssh/id_* were root-anchored — a nested copy leaked; now **/ depth-matched. Regression test covers all three. |
||
|---|---|---|
| .. | ||
| ignore.go | ||
| ignore_test.go | ||