The .secrets file is not a security tool. It is a liability waiting for a trigger.
Use gitleaks detect --source=. --no-git or trufflehog filesystem . to automatically classify found secrets. .secrets
The .secrets file is a contract. It says: "The contents of this file must never leave the local machine or the secure vault. They must not appear in logs. They must not be stored in Git history." .secrets