Skip to content

Commit

Permalink
fix(plugins/npm-post): start ssh-agent on any remote
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Jun 24, 2024
1 parent 3ce4386 commit e660e8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/npm-post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ prepare() {
log_verbose "Git GPG passphrase set"
fi
elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PRIVATE_KEY-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
eval "$(ssh-agent -s)"

SSH_PUBLIC_KEY_FILE=$(mtemp)
printf "%s" "${SSH_PUBLIC_KEY}" >>"${SSH_PUBLIC_KEY_FILE}"

Expand Down

0 comments on commit e660e8b

Please sign in to comment.