Merge pull request #1484 from pikasTech/fix/1476-sentinel-health-contract

fix: accept successful sentinel health payloads
This commit is contained in:
Lyon
2026-07-03 13:50:46 +08:00
committed by GitHub
+1 -1
View File
@@ -1501,7 +1501,7 @@ function callSentinelService(state: SentinelCicdState, method: "GET" | "POST", p
}
function isSentinelServiceResponseContract(value: Record<string, unknown>): boolean {
return value.ok === false
return typeof value.ok === "boolean"
|| typeof value.view === "string"
|| typeof value.renderedText === "string"
|| typeof value.error === "string"