Skip to content

Commit

Permalink
add encrypt test to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robzr committed Mar 5, 2024
1 parent 5a01e21 commit 4e26a62
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
echo ::endgroup::
echo "file=${KEY_FILE}" >>"$GITHUB_OUTPUT"
echo "file2=${KEY_FILE2}" >>"$GITHUB_OUTPUT"
- name: Import Test 1
- id: import-test-1
name: Import Test 1
uses: ./keys/import
with:
key-files: |
Expand All @@ -44,3 +45,20 @@ jobs:
https://keys.openpgp.org/vks/v1/by-fingerprint/A999B7498D1A8DC473E53C92309F635DAD1B5517
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x6e2b662831d0cc10
search: rob@zwissler.org
- name: Encrypt Test 1
run: |
gpg \
--batch \
--no-tty \
--trust-model always \
--encrypt \
--recipient "${{ fromJSON(steps.import-test-1)[0].fingerprint }}"
with:
key-files: |
${{ steps.curl-key.outputs.file }}
${{ steps.curl-key.outputs.file2 }}
key-urls: |
https://keys.openpgp.org/vks/v1/by-fingerprint/A999B7498D1A8DC473E53C92309F635DAD1B5517
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x6e2b662831d0cc10
search: rob@zwissler.org
-

0 comments on commit 4e26a62

Please sign in to comment.