mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-02-02 14:44:16 +00:00
fix(security): correct .gitleaksignore
This commit is contained in:
@@ -1,25 +1,9 @@
|
||||
# Gitleaks ignore patterns
|
||||
# https://github.com/gitleaks/gitleaks
|
||||
|
||||
# Ignore test files with dummy secrets
|
||||
*/testdata/*
|
||||
*/test/*
|
||||
*_test.go
|
||||
|
||||
# Ignore example configurations
|
||||
*/examples/*
|
||||
*/docs/*
|
||||
|
||||
# Common false positives
|
||||
# Generic test tokens
|
||||
test_token_*
|
||||
dummy_*
|
||||
fake_*
|
||||
example_*
|
||||
|
||||
# GitHub Actions test tokens
|
||||
GITHUB_TOKEN=fake_token
|
||||
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Ignore specific lines (use commit:file:line format)
|
||||
# abc123:path/to/file.go:42
|
||||
f9823eef3ec602b92ab4f17b3b4b93b2f219fb6a:internal/wizard/validator_test.go:generic-api-key:195
|
||||
f9823eef3ec602b92ab4f17b3b4b93b2f219fb6a:internal/wizard/validator_test.go:generic-api-key:197
|
||||
f9823eef3ec602b92ab4f17b3b4b93b2f219fb6a:internal/wizard/validator_test.go:generic-api-key:198
|
||||
f9823eef3ec602b92ab4f17b3b4b93b2f219fb6a:internal/wizard/validator_test.go:generic-api-key:199
|
||||
f9823eef3ec602b92ab4f17b3b4b93b2f219fb6a:internal/wizard/validator_test.go:generic-api-key:200
|
||||
f9823eef3ec602b92ab4f17b3b4b93b2f219fb6a:internal/wizard/validator_test.go:github-pat:195
|
||||
|
||||
Reference in New Issue
Block a user