From a8f58509dea2aeda26c4d350f3e0a2b707b26a3a Mon Sep 17 00:00:00 2001 From: Nicola Squartini Date: Tue, 16 Aug 2022 21:10:49 +0900 Subject: [PATCH] feat: allow using a subkey for GPG signing --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index a4fcdbf..8b49667 100644 --- a/action.yml +++ b/action.yml @@ -57,6 +57,9 @@ inputs: description: 'GPG Private Key with which to sign the commits in the PR to be created' required: false default: '' + gpg-fingerprint: + description: 'Fingerprint of specific GPG subkey to use' + required: false gpg-passphrase: description: 'GPG Private Key Passphrase for the GPG Private Key with which to sign the commits in the PR to be created' required: false @@ -74,6 +77,7 @@ runs: uses: crazy-max/ghaction-import-gpg@v4 with: gpg_private_key: ${{ inputs.gpg-private-key }} + fingerprint: ${{ inputs.gpg-fingerprint }} passphrase: ${{ inputs.gpg-passphrase }} git_config_global: true git_user_signingkey: true