collection/ssh-add-key/action.yml

27 lines
898 B
YAML
Raw Permalink Normal View History

2026-07-11 17:02:18 +02:00
# SPDX-License-Identifier: EUPL-1.2
name: "ssh-add-key"
description: "Configure an SSH private key and known hosts"
author: "Louis Seubert"
inputs:
key:
description: >
The SSH private key content to install. The key will be written to
~/.ssh/<name> and added to the SSH agent via ssh-add. Use a secret to pass
the key value, e.g. ${{ secrets.SSH_PRIVATE_KEY }}.
required: true
path:
description: >
The directory to write the private key to. Defaults to ~/.ssh.
required: false
default: "~/.ssh"
filename:
description: >
The filename to use when writing the private key to ~/.ssh. This also
determines the names of the corresponding -pub and -pub.sig
files. Defaults to "id_rsa".
required: false
default: "id_rsa"
runs:
using: "docker"
image: "docker://code.geekeey.de/component/core:1.0.0"
args: ["ssh-add-key"]