From dd0f5ac56814a919a2d9f6a536174b0bc3f41afb Mon Sep 17 00:00:00 2001 From: Angie Song Date: Fri, 22 Mar 2024 13:14:08 -0700 Subject: [PATCH] fix: update `publish-provider.yml` with snippet from https://github.com/hashicorp/terraform-provider-scaffolding-framework/blob/dfe35c4fbac24e49640133e03edf9b3cccd1f6f2/.github/workflows/release.yml --- .github/workflows/publish-provider.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-provider.yml b/.github/workflows/publish-provider.yml index 63daaef..908ccc5 100644 --- a/.github/workflows/publish-provider.yml +++ b/.github/workflows/publish-provider.yml @@ -81,24 +81,22 @@ jobs: needs: release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: # Allow goreleaser to access older tag information. fetch-depth: 0 - - uses: actions/setup-go@v2 + - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: go-version-file: 'go.mod' cache: true - name: Import GPG key - uses: crazy-max/ghaction-import-gpg@v6 + uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0 id: import_gpg with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} - env: - GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 with: args: release --clean env: