mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-03-18 12:02:11 +00:00
chore(security): add gitleaks config and update ignore list for test tokens (#195)
This commit is contained in:
13
.gitleaks.toml
Normal file
13
.gitleaks.toml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
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.
|
||||||
|
[allowlist]
|
||||||
|
description = "Test fixture files containing placeholder tokens"
|
||||||
|
paths = [
|
||||||
|
'''^testutil/test_constants\.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