Skip to content

Commit

Permalink
Replace import-pgp action with upstream version (#68)
Browse files Browse the repository at this point in the history
Hashicorp's ghaction-import-gpg has been deprecated in favour of this
action - additionally their action has a bug which they are not intending
on fixing and recommend people switch.

Reference: hashicorp/terraform-provider-scaffolding#127
Reference: hashicorp/ghaction-import-gpg#11
  • Loading branch information
jon-ruckwood authored Jul 18, 2022
1 parent c260295 commit c8d574c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,12 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
# secret. If you would rather own your own GPG handling, please fork this action
# or use an alternative one for key handling.
- name: Import GPG key
id: import_gpg
uses: hashicorp/ghaction-import-gpg@v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
uses: crazy-max/ghaction-import-gpg@34ea557550c84ea665cae5c61c3b084feac7e042 # => v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
Expand Down

0 comments on commit c8d574c

Please sign in to comment.