Skip to content

Commit

Permalink
WIP: check file perms
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaso committed Mar 29, 2024
1 parent a398791 commit e45cce8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vault_oidc_ssh_cert_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit e45cce8

Please sign in to comment.