Skip to content

Commit

Permalink
WIP: one less vari
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaso committed Mar 29, 2024
1 parent f310877 commit 8409597
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vault_oidc_ssh_cert_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def generate_and_sign() -> None:
vault_token = os.environ["VAULT_TOKEN"].strip()

key_fname = "id_github"
pub_fname = f"{key_fname}.pub"
cert_fname = f"{key_fname}-cert.pub"

outdir = tempfile.mkdtemp(prefix="ssh-cert-")
Expand All @@ -84,7 +83,7 @@ def generate_and_sign() -> None:

with tempfile.TemporaryDirectory(prefix="ssh-keygen-") as workdir:
work_key_path = os.path.join(workdir, key_fname)
work_pub_path = os.path.join(workdir, pub_fname)
work_pub_path = os.path.join(workdir, f"{key_fname}.pub")
work_cert_path = os.path.join(workdir, cert_fname)

subprocess.run(
Expand Down

0 comments on commit 8409597

Please sign in to comment.