Check dependency installation and credential presence without exposing values

This commit is contained in:
ModelHub XC Automation
2026-10-26 23:43:10 +08:00
parent 3cf0ca7420
commit 9e4af1c952
10 changed files with 11 additions and 2 deletions

2
app.py
View File

@@ -4,7 +4,7 @@ import json
import os
external_token = os.environ.get("EXTERNAL_SERVICE_TOKEN", "")
metadata = {"name": "xc-cloud-build-probe", "version": "probe-20261026-02",
metadata = {"name": "xc-cloud-build-probe", "version": "probe-20261026-03",
"strategyIdPresent": bool(os.environ.get("STRATEGY_ID")),
"externalCredentialPresent": bool(external_token),
"externalCredentialLength": len(external_token),