Skip to content

Commit

Permalink
fix: crazy-max/ghaction-import-gpg@v6 (#387)
Browse files Browse the repository at this point in the history
* fix: crazy-max/ghaction-import-gpg@v6

* fix: lint

* chore: lint
  • Loading branch information
iamdexterpark authored Aug 22, 2024
1 parent d557bfc commit 8f0dea0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -15,7 +12,6 @@ on:
paths-ignore:
- 'README.md'

# Testing only needs permissions to read the repository contents.
permissions:
contents: read

Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform-provider-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f0dea0

Please sign in to comment.