Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Checking GPG private key #71

Closed
jbrunetext opened this issue Dec 23, 2020 · 1 comment
Closed

Error Checking GPG private key #71

jbrunetext opened this issue Dec 23, 2020 · 1 comment

Comments

@jbrunetext
Copy link

Behaviour

Steps to reproduce this issue

1.Export the Prvate Key :
gpg --armor --export-secret-key F1840E7D69CDF54D66EFAAA762B9XXXXXXXXXX -w0
2.Create GPG_PRIVATE_KEY AND PASSPHRASE
3.git tag -f v0.0.1

Expected behaviour

signed artefact with gpg

Actual behaviour

my artefact should be signed but i faced a issue add step Import GPG key
i don't know why i cannot import the key
Checking GPG private key
Error: Could not find valid encryption key packet in key 62xxxxxxxx

Configuration

  • Repository URL (if public):
  • Build URL (if public):
name: release
on:
  push:
    tags:
      - 'v*'
jobs:
  goreleaser:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v2
      -
        name: Unshallow
        run: git fetch --prune --unshallow
      -
        name: Set up Go
        uses: actions/setup-go@v2
        with:
          go-version: 1.14
      -
        name: Import GPG key
        id: import_gpg
        uses: paultyng/ghaction-import-gpg@v2.1.0
        env:
          GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
          PASSPHRASE: ${{ secrets.PASSPHRASE }}
      -
        name: Run GoReleaser
        uses: goreleaser/goreleaser-action@v2
        with:
          version: latest
          args: release --rm-dist
        env:
          GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Logs

Download the log file of your build and attach it to this issue.

@jbrunetext
Copy link
Author

retry with another key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant