6f828ccb51
On my self-hosted Windows runners, the `git`, `ssh-agent`, and `ssh-add` commands are not located in the locations that are currently hard-coded in `paths.js`. With this PR, I am able to get this action to work on my runners as follows: ```yaml - uses: webfactory/ssh-agent@... with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} git-cmd: git ssh-agent-cmd: ssh-agent ssh-add-cmd: ssh-add ```
29 lines
842 B
YAML
29 lines
842 B
YAML
name: 'webfactory/ssh-agent'
|
|
description: 'Run `ssh-agent` and load an SSH key to access other private repositories'
|
|
inputs:
|
|
ssh-private-key:
|
|
description: 'Private SSH key to register in the SSH agent'
|
|
required: true
|
|
ssh-auth-sock:
|
|
description: 'Where to place the SSH Agent auth socket'
|
|
log-public-key:
|
|
description: 'Whether or not to log public key fingerprints'
|
|
required: false
|
|
default: true
|
|
ssh-agent-cmd:
|
|
description: 'ssh-agent command'
|
|
required: false
|
|
ssh-add-cmd:
|
|
description: 'ssh-add command'
|
|
required: false
|
|
git-cmd:
|
|
description: 'git command'
|
|
required: false
|
|
runs:
|
|
using: 'node16'
|
|
main: 'dist/index.js'
|
|
post: 'dist/cleanup.js'
|
|
post-if: 'always()'
|
|
branding:
|
|
icon: loader
|
|
color: 'yellow'
|