feat: secret patterns for all of a repo's config files, with per-type overrides (#82)

Co-authored-by: Karl-Einar Bergstrøm <karl-einarb@outlook.com>
This commit was merged in pull request #82.
This commit is contained in:
keb authored and Karl-Einar Bergstrøm committed 2026-10-15 14:06:02 +02:00
1 parent 913b3db6a9
commit 4bac06ae5b
9 files changed
+216 -118

No files matched your search

+2 -1
View File
@@ -346,7 +346,8 @@ Flags:
if config.On(pc.Repos.Enabled) {
repos := repo.New(repo.Settings{
Dir: startDir, Paths: pc.Repos.Paths, Roots: valueOr(pc.Repos.Roots, repo.DefaultRoots),
Starred: starredRepos(st), Include: pc.Repos.Include, Exclude: pc.Repos.Exclude, Spring: pc.Repos.Spring,
Starred: starredRepos(st), Include: pc.Repos.Include, Exclude: pc.Repos.Exclude,
SecretPatterns: pc.Repos.SecretPatterns, Types: map[string]repo.FileType{"spring": pc.Repos.Spring},
})
// The repo it started in (shown on top as Repo) and the
// others, checked for secret files in the background like