Skip to content

Commit c53044e

Browse files
committed
fix: format detect_secrets.py to resolve Ruff check
1 parent 944eeb3 commit c53044e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dev-tools/security/detect_secrets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def detect_secrets(source_dir: str = "src") -> bool:
5757
logger.error("Potential hardcoded secrets found:")
5858
for secret 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.split(":")[0] if ":" in secret else "unknown location"
6161
logger.error(f" Secret detected at: {location}")
6262
return False
6363
else:

0 commit comments

Comments
 (0)