Skip to content

Commit 74d6323

Browse files
Potential fix for code scanning alert no. 159: Clear-text logging of sensitive information (opensandbox-group#962)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 2a91287 commit 74d6323

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/openclaw/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def main() -> None:
7272
port = DEFAULT_PORT
7373

7474
print(f"Creating openclaw sandbox with image={image} on OpenSandbox server {server}...")
75-
print(f" API Key: {api_key[:16]}..." if len(api_key) > 16 else f" API Key: {api_key}")
76-
print(f" Token: {token[:16]}..." if len(token) > 16 else f" Token: {token}")
75+
print(f" API Key: {'[REDACTED] (set)' if api_key else '[NOT SET]'}")
76+
print(f" Token: {'[REDACTED] (set)' if token else '[NOT SET]'}")
7777
print(f" Port: {port}")
7878
print(f" Timeout: {timeout_seconds}s")
7979

0 commit comments

Comments
 (0)