Is there a way to add a check for file extensions rather than text within files?
Open
- Dominant language
- Shell
- Stars
- 13.4k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
I have binary database connection files that I would like to prevent committing to source control. Is there a way to add a rule that matches based on filenames? Something like `*.sde`?
Contributor guide
Research direction
No file, test, or entry point is named in the issue. Start by tracing how git-secrets rules currently match file contents and how rules are configured or invoked; define done as reliably blocking files matching patterns such as *.sde, including binary files, while preserving existing content matching.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100