From f80420c68d5ab1c524409011fef5fe26fb351d9f Mon Sep 17 00:00:00 2001 From: Jonas Strassel Date: Sun, 15 Aug 2021 09:29:20 +0200 Subject: [PATCH] feat: allow additional pacman key (#18) --- action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/action.yml b/action.yml index 854e4a1..7d481ee 100644 --- a/action.yml +++ b/action.yml @@ -39,6 +39,9 @@ inputs: gpg-passphrase: description: 'phrase to decrypt the gpg secret key if given' required: false + additional-trusted-gpg: + description: 'gpg keyids that pacman should trust' + required: false cdn77-host: description: 'cdn77 upload credentials' required: false @@ -154,6 +157,10 @@ runs: sudo pacman-key --init sudo pacman-key --populate archlinux manjaro + + for gpg_key in ${{ inputs.additional-trusted-gpg }}; do + sudo pacman-key --keyserver keys.openpgp.org --recv-key $gpg_key + done - id: install-arch-install-scripts shell: bash env: