-
-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Labels
Description
Behaviour
Steps to reproduce this issue
- Add PASSPHRASE and SIGNING_KEY as secret.
Follow below steps to get your SIGNING_KEY value:-
- Run "gpg --list-secret-keys" and copy the ID of the key you'd like to use
- Export the key with "gpg -a --export-secret-keys KEY_ID"(replace KEY_ID with your copied ID) - create the workflow import-gpg.yaml
- Push something to master branch to trigger the workflow
Expected behaviour
The workflow should run successfully and the gpg private key should have been imported
Actual behaviour
Workflow failed and gpg private key did not get imported (output)
Configuration
- Repository URL (if public): https://github.com/riprasad/gitub-actions-demo
- Build URL (if public): https://github.com/riprasad/gitub-actions-demo/runs/646938049?check_suite_focus=true
# paste your YAML workflow file here and remove sensitive data
name: import-gpg
on:
push:
branches: master
jobs:
import-gpg:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v1
with:
git_gpgsign: true
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}Logs
Download the [log file of your build](https://github.com/riprasad/gitub-actions-demo/runs/646938049?check_suite_focus=true
logs_263.zip
) and attach it to this issue.