From 6a1603a55ec08d6ee9fd49cb280d9882e17fee6b Mon Sep 17 00:00:00 2001 From: Andreas Olsson Date: Sat, 30 Mar 2024 10:19:41 +0100 Subject: [PATCH] WIP: Proper SystemExit --- vault_oidc_ssh_cert_action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault_oidc_ssh_cert_action.py b/vault_oidc_ssh_cert_action.py index 3785d15..5a51edc 100644 --- a/vault_oidc_ssh_cert_action.py +++ b/vault_oidc_ssh_cert_action.py @@ -69,7 +69,7 @@ def github_vault_auth() -> None: ) except requests.exceptions.HTTPError as http_error: print(http_error.response.json()) - raise SystemExit from http_error + raise SystemExit(1) from http_error print(f"::add-mask::{vault_token}") with open(os.environ["GITHUB_OUTPUT"], mode="a", encoding="utf-8") as ghof: