haiyizxx commited on
Commit
aee3d36
·
1 Parent(s): cd8212e

debug: add secret check to health endpoint

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -88,4 +88,10 @@ async def cvat_webhook(request: Request):
88
 
89
  @app.get("/health")
90
  async def health():
91
- return {"status": "ok", "dataset": DATASET}
 
 
 
 
 
 
 
88
 
89
  @app.get("/health")
90
  async def health():
91
+ return {
92
+ "status": "ok",
93
+ "dataset": DATASET,
94
+ "has_github_pat": bool(GITHUB_PAT),
95
+ "has_cvat_token": bool(CVAT_TOKEN),
96
+ "repo_ref": REPO_REF,
97
+ }