Open wpcarro opened 4 years ago
git configuration is accumulated from multiple sources.
repo/.git/config
is the configuration for a specific repository
There is also a "global" configuration for git for your user on your computer, which might be found in ~/.gitconfig
or ~/.git/config
or ~/.config/git/config
. I recommend checking these locations on your dev machine.
I'm attempt to use
git secrets --scan-history
in CI, but I'm currently get false-positives becausegit config --get-all secrets.patterns
is empty on my CI server but populated on my development machine.CI
Dev
Investigation
Where else can these
secrets.patterns
be defined? On my dev machine, I searched through myhistory
for any calls--add-provider
or--add
for patterns, but I cannot find anything that would've added all of these patterns:I also tried to find any
gitconfig
file that might have a[secrets]
header... I haven't found anything yet:To be clear, I'd like my CI machine to have the same patterns as my dev machine. Can someone help me troubleshoot this? Both machines are using
git-secrets-1.3.0
.