Skip to content

Commit 6291539

Browse files
committed
Fixing more false positives
1 parent 821275b commit 6291539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ci/s3_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
)
2222

2323
sensitive_var_pattern = re.compile(
24-
r"\b[A-Z_]*(SECRET|PASSWORD|ACCESS_KEY|TOKEN)[A-Z_]*\b(?!=clickhouse$)(?!: \*{3}$)"
24+
r"\b[A-Z_]*(SECRET|PASSWORD|ACCESS_KEY|TOKEN)[A-Z_]*\b(?!=clickhouse$)(?!: \*{3}$)(?! '\[HIDDEN\]')(?!%)"
2525
)
2626
sensitive_strings = {
2727
var: value for var, value in os.environ.items() if sensitive_var_pattern.match(var)

0 commit comments

Comments
 (0)