From 048738ad8a164e3acfd37c3e2c127b7a782fb16d Mon Sep 17 00:00:00 2001 From: Jason Harley Date: Fri, 22 Jul 2022 15:44:59 -0400 Subject: [PATCH] CI: fix GPG import in release pipeline (#194) Matches Hashi's example: https://github.com/hashicorp/terraform-provider-scaffolding/blob/main/.github/workflows/release.yml --- .github/workflows/goreleaser.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index e12b1766..1f68f0eb 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -21,11 +21,10 @@ jobs: go-version: 1.17 - name: Import GPG key id: import_gpg - uses: hashicorp/ghaction-import-gpg@v2.1.0 - env: - # These secrets will need to be configured for the repository: - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - PASSPHRASE: ${{ secrets.PASSPHRASE }} + uses: crazy-max/ghaction-import-gpg@v5 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3.0.0 with: