mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-03-19 23:02:42 +00:00
chore(security): add gitleaks config and update ignore list for test tokens
Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com>
This commit is contained in:
14
.gitleaks.toml
Normal file
14
.gitleaks.toml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
title = "gh-action-readme gitleaks configuration"
|
||||||
|
|
||||||
|
[extend]
|
||||||
|
useDefault = true
|
||||||
|
|
||||||
|
# Allowlist for test files and fixtures that intentionally contain placeholder tokens.
|
||||||
|
# These are not real secrets and are used only for testing purposes.
|
||||||
|
[[allowlists]]
|
||||||
|
description = "Test fixture files containing placeholder tokens"
|
||||||
|
paths = [
|
||||||
|
'''testutil/test_constants\.go''',
|
||||||
|
'''.*_test\.go''',
|
||||||
|
'''testdata/.*''',
|
||||||
|
]
|
||||||
@@ -23,3 +23,6 @@ internal/wizard/validator_test.go:github-pat:204
|
|||||||
integration_test.go:github-pat:304
|
integration_test.go:github-pat:304
|
||||||
internal/config_test.go:github-pat:133
|
internal/config_test.go:github-pat:133
|
||||||
internal/config_test.go:github-pat:162
|
internal/config_test.go:github-pat:162
|
||||||
|
testdata/yaml-fixtures/configs/global-config-default.yml:github-pat:4
|
||||||
|
testutil/test_constants.go:github-pat:363
|
||||||
|
testutil/test_constants.go:github-pat:455
|
||||||
|
|||||||
Reference in New Issue
Block a user