From e45cce8e312196c017e5656c5068f1d03e69894e Mon Sep 17 00:00:00 2001 From: Andreas Olsson Date: Fri, 29 Mar 2024 14:05:37 +0100 Subject: [PATCH] WIP: check file perms --- vault_oidc_ssh_cert_action.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vault_oidc_ssh_cert_action.py b/vault_oidc_ssh_cert_action.py index 6bd7d05..97f2341 100644 --- a/vault_oidc_ssh_cert_action.py +++ b/vault_oidc_ssh_cert_action.py @@ -104,6 +104,9 @@ def generate_and_sign() -> None: os.rename(work_key_path, out_key_path) os.rename(work_cert_path, out_cert_path) + print(oct(os.stat(out_key_path).st_mode)) + print(oct(os.stat(out_cert_path).st_mode)) + with open(os.environ["GITHUB_OUTPUT"], mode="a", encoding="utf-8") as ghof: ghof.write(f"cert_path={out_cert_path}\n") ghof.write(f"key_path={out_key_path}\n")