Open MagicJohnJang opened 5 years ago
echo -n "password=12345" > test-file
echo -n "password\s*=\s*.+" > pattern-file
git secrets --add-provider -- cat ./pattern-file
git add test-file
git secrets --scan
produces:
test-file:1:password=12345
Can you describe a different test case that reproduces the problematic behavior you've observed?
Environment
Win10 with git bash
Case
target secret file: test.txt (should be the end of file without newline)
pattern file: pattern.txt (should be the first line of file)
Apply pattern:
git secrets --add-provider -- cat ./pattern.txt
Run scan:
git secrets --scan
An then it'll ignore the password.