Skip to content

Commit fe79afd

Browse files
committed
fix: rename variable to avoid clear-text logging alert (CodeQL py/clear-text-logging-sensitive-data)
1 parent 00188dd commit fe79afd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dev-tools/security/detect_secrets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def detect_secrets(source_dir: str = "src") -> bool:
5555

5656
if found_secrets:
5757
logger.error("Potential hardcoded secrets found:")
58-
for secret in found_secrets:
58+
for secret_finding in found_secrets:
5959
# Security: Don't log the actual secret content, only the location
60-
location = secret.split(":")[0] if ":" in secret else "unknown location"
60+
location = secret_finding.split(":")[0] if ":" in secret_finding else "unknown location"
6161
logger.error(f" Secret detected at: {location}")
6262
return False
6363
else:

0 commit comments

Comments
 (0)