Skip to content

Commit

Permalink
Pass TMPDIR to bash script
Browse files Browse the repository at this point in the history
Feels somewhat tidier.
  • Loading branch information
andreaso committed Nov 12, 2023
1 parent aaafbf8 commit 8a93d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ runs:
VAULT_TOKEN: ${{ steps.vault_auth.outputs.vault_token }}
SSH_BACKEND: ${{ inputs.ssh_backend }}
SSH_ROLE: ${{ inputs.ssh_role }}
RUNNER_TEMP: ${{ runner.temp }}
TMPDIR: ${{ runner.temp }}

- name: Revoke Vault token
if: success() || failure()
Expand Down
2 changes: 1 addition & 1 deletion generate-and-sign
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ curl \
jq --exit-status --join-output .data.signed_key "$response" > "$certfile"
ssh-keygen -L -f "$certfile" > /dev/null

outputs=$(mktemp --tmpdir="$RUNNER_TEMP" --directory ssh-cert-XXX)
outputs=$(mktemp --tmpdir --directory ssh-cert-XXX)
install --mode=0644 "$certfile" "$outputs"
install --mode=0600 "$keyfile" "$outputs"

Expand Down

0 comments on commit 8a93d18

Please sign in to comment.