From 8f0dea09716d1acd8ee3905b1eceadb88867a769 Mon Sep 17 00:00:00 2001 From: Dexter Park Date: Thu, 22 Aug 2024 01:05:13 -0700 Subject: [PATCH] fix: crazy-max/ghaction-import-gpg@v6 (#387) * fix: crazy-max/ghaction-import-gpg@v6 * fix: lint * chore: lint --- .github/workflows/lint.yml | 8 ++++---- .github/workflows/terraform-provider-release.yml | 2 +- .../administered/identities_me_data_source_test.go | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 192e4715..4054d7ec 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,5 @@ -# Terraform Provider testing workflow. name: lint -# This GitHub action runs your tests for each pull request and push. -# Optionally, you can turn it on using a schedule for regular testing. on: pull_request: branches-ignore: @@ -15,7 +12,6 @@ on: paths-ignore: - 'README.md' -# Testing only needs permissions to read the repository contents. permissions: contents: read @@ -31,6 +27,10 @@ jobs: uses: actions/setup-go@v5 with: go-version: stable + + - name: Install dependencies + run: go mod download + - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: diff --git a/.github/workflows/terraform-provider-release.yml b/.github/workflows/terraform-provider-release.yml index 06ffb249..f8c53540 100644 --- a/.github/workflows/terraform-provider-release.yml +++ b/.github/workflows/terraform-provider-release.yml @@ -20,7 +20,7 @@ jobs: go-version-file: 'go.mod' cache: true - name: Import GPG key - uses: crazy-max/ghaction-import-gpg@6 + uses: crazy-max/ghaction-import-gpg@v6 id: import_gpg with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} diff --git a/internal/test_acc/administered/identities_me_data_source_test.go b/internal/test_acc/administered/identities_me_data_source_test.go index dce2ab23..8d103238 100644 --- a/internal/test_acc/administered/identities_me_data_source_test.go +++ b/internal/test_acc/administered/identities_me_data_source_test.go @@ -28,7 +28,8 @@ func TestAccAdministeredIdentitiesMeDataSource(t *testing.T) { re := regexp.MustCompile(`^((?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))(Z|[\+-]\d{2}:\d{2})?)$`) if re.MatchString(value) != true { - return fmt.Errorf(fmt.Sprintf("received tiemstring does not match RFC3339 format: %s", value)) + err := fmt.Sprintf("received tiemstring does not match RFC3339 format: %s", value) + return fmt.Errorf(err) } return nil