Do not fail pipeline on audit transport errors

This commit is contained in:
2026-05-09 11:24:11 +02:00
parent 3aae374c89
commit 6caff50a84
2 changed files with 7 additions and 3 deletions

View File

@@ -49,6 +49,10 @@ def print_error(payload: dict) -> int:
error = payload.get("error")
if error:
print(f"AUDIT ERROR: {error}")
# If the audit couldn't run (eg transient salt/transport issues), do not
# block deployments. Mark as warn/unstable instead.
if error == "audit_failed":
return 1
return 2
return 0