feat: allow using a subkey for GPG signing

This commit is contained in:
Nicola Squartini 2022-08-16 21:10:49 +09:00 committed by Cole Helbling
parent ea4115a12c
commit a8f58509de

View file

@ -57,6 +57,9 @@ inputs:
description: 'GPG Private Key with which to sign the commits in the PR to be created' description: 'GPG Private Key with which to sign the commits in the PR to be created'
required: false required: false
default: '' default: ''
gpg-fingerprint:
description: 'Fingerprint of specific GPG subkey to use'
required: false
gpg-passphrase: gpg-passphrase:
description: 'GPG Private Key Passphrase for the GPG Private Key with which to sign the commits in the PR to be created' description: 'GPG Private Key Passphrase for the GPG Private Key with which to sign the commits in the PR to be created'
required: false required: false
@ -74,6 +77,7 @@ runs:
uses: crazy-max/ghaction-import-gpg@v4 uses: crazy-max/ghaction-import-gpg@v4
with: with:
gpg_private_key: ${{ inputs.gpg-private-key }} gpg_private_key: ${{ inputs.gpg-private-key }}
fingerprint: ${{ inputs.gpg-fingerprint }}
passphrase: ${{ inputs.gpg-passphrase }} passphrase: ${{ inputs.gpg-passphrase }}
git_config_global: true git_config_global: true
git_user_signingkey: true git_user_signingkey: true