Skip to content

Commit 0e2cadd

Browse files
authored
fix(ci): update gitleaks config (#2744)
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent f6e7d7c commit 0e2cadd

4 files changed

Lines changed: 7 additions & 30 deletions

File tree

.github/workflows/utils/.gitleaks.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ title = "Gitleaks config"
33
[extend]
44
useDefault = true
55

6-
# Ignore test files and test directories
76
[[allowlists]]
87
paths = [
98
'''.*_test\..*''', # Test files
109
'''(^|/)testdata/.*''', # Testdata directories
10+
'''devel/devkeys/.*''', # Development keys
11+
'''devel/README\.md''', # Development docs with example tokens
12+
'''deployment/chainloop/.*README\.md''', # Helm chart documentation
13+
'''deployment/chainloop/values\.yaml''', # Helm values with example keys
14+
'''deployment/chainloop/templates/_helpers\.tpl''', # Helm template helpers
1115
]

.gitleaksignore

Lines changed: 0 additions & 27 deletions
This file was deleted.

app/cli/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ var (
415415
// It can be overridden by the user if they want to use their own instance of Posthog or deactivated by setting
416416
// DO_NOT_TRACK=1 more information that can be found at: https://github.com/chainloop-dev/chainloop/blob/main/docs/docs/reference/operator/cli-telemetry.mdx
417417
// nolint:gosec
418-
posthogAPIKey = "phc_TWWW19kEiD6sEejlHKWcICQ5Vc06vZUTYia8WdPB0A0"
418+
posthogAPIKey = "phc_TWWW19kEiD6sEejlHKWcICQ5Vc06vZUTYia8WdPB0A0" // gitleaks:allow
419419
posthogEndpoint = "https://crb.chainloop.dev"
420420
)
421421

buf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ modules:
132132
- FIELD_SAME_DEFAULT
133133
deps:
134134
- buf.build/bufbuild/protovalidate:v1.1.0
135-
- buf.build/googleapis/googleapis:4ed3bc159a8b4ac68fe253218760d035
135+
- buf.build/googleapis/googleapis:4ed3bc159a8b4ac68fe253218760d035 # gitleaks:allow
136136
- buf.build/grpc-ecosystem/grpc-gateway:v2.26.3
137137
- buf.build/kratos-go/kratos:e1d52e944e3845c6862a566db322432d

0 commit comments

Comments
 (0)