--fail-on-changes gate
sth update --fail-on-changes exits 1 if a managed file was modified locally, without applying anything. The ideal pipeline guardrail.
Automation
Every command was built to run without a human. STH fits your pipelines with machine output, a reliable exit code and secret-free authentication.
$ sth update --fail-on-changes --json
{ "changed": 0, "upToDate": 12, "outdated": 0 }
$ echo $?
0
$ sth update self
✔ v0.8.3 → v0.9.0 (SHA256 vérifié)sth update --fail-on-changes exits 1 if a managed file was modified locally, without applying anything. The ideal pipeline guardrail.
Machine-readable state on most commands; errors become { "error", "code" } with a non-zero exit code.
In CI, STH exchanges the OIDC token injected by GitHub Actions — no long-lived secret to store.
sth update self fetches the latest stable release and verifies its SHA256 before applying it.