fix: disable automatic sentinel quick verify cadence

This commit is contained in:
Codex
2026-07-01 04:00:30 +00:00
parent 0514265843
commit 9b958743d6
2 changed files with 10 additions and 0 deletions
@@ -1102,6 +1102,8 @@ function sentinelCadenceCronJobPlan(
imageRef: string,
sentinelEnv: readonly Record<string, unknown>[],
): Record<string, unknown> | null {
const cadenceSchedulerEnabled = booleanAtNullable(cicd, "targetValidation.cadenceScheduler.enabled") === true;
if (!cadenceSchedulerEnabled) return null;
const scenarioId = stringAtNullable(cicd, "targetValidation.scenarioId");
if (scenarioId === null) return null;
const scenario = scenarioRows(scenarios).find((item) => item.id === scenarioId && item.enabled !== false) ?? null;
@@ -3440,6 +3442,11 @@ export function numberAtNullable(value: unknown, path: string): number | null {
return typeof found === "number" && Number.isFinite(found) ? found : null;
}
function booleanAtNullable(value: unknown, path: string): boolean | null {
const found = valueAtPath(value, path);
return typeof found === "boolean" ? found : null;
}
export function displayPath(pathValue: string): string {
if (pathValue.startsWith(`${repoRoot}/`)) return pathValue.slice(repoRoot.length + 1);
const marker = "/.worktree/";