diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82fef4c2..62b097c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,11 +21,11 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Set up Go - uses: actions/setup-go@v2.1.3 + uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.17 - name: Restore Cache - uses: actions/cache@v2.1.6 + uses: actions/cache@v2 with: path: |- ~/go/pkg/mod diff --git a/.github/workflows/generated_code_checks.yml b/.github/workflows/generated_code_checks.yml index c21c5106..63ce758d 100644 --- a/.github/workflows/generated_code_checks.yml +++ b/.github/workflows/generated_code_checks.yml @@ -11,11 +11,11 @@ jobs: with: submodules: true - name: Set up Go - uses: actions/setup-go@v2.1.3 + uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.17 - name: Restore Cache - uses: actions/cache@v2.1.6 + uses: actions/cache@v2 with: path: |- ~/go/pkg/mod diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 00000000..4d47d85f --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,27 @@ +name: goreleaser + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - name: goreleaser check + uses: goreleaser/goreleaser-action@v2 + with: + version: v0.178.0 + args: check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ab664e4..d377d254 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,11 +16,11 @@ jobs: with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2.1.3 + uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.17 - name: Restore Cache - uses: actions/cache@v2.1.6 + uses: actions/cache@v2 with: path: |- ~/go/pkg/mod @@ -33,7 +33,7 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: - version: v0.169.0 + version: v0.178.0 args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index a2b44403..5866834c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This ruleset focus on possible errors and best practices about AWS resources. Ma ## Requirements - TFLint v0.30+ -- Go v1.16 +- Go v1.17 ## Installation diff --git a/go.mod b/go.mod index 9b0e9518..ac03d88c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/terraform-linters/tflint-ruleset-aws -go 1.16 +go 1.17 require ( github.com/agext/levenshtein v1.2.2 // indirect @@ -34,3 +34,25 @@ require ( gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) + +require ( + github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect + github.com/golang/protobuf v1.4.2 // indirect + github.com/hashicorp/errwrap v1.0.0 // indirect + github.com/hashicorp/go-hclog v0.16.2 // indirect + github.com/hashicorp/go-plugin v1.4.2 // indirect + github.com/hashicorp/go-version v1.3.0 // indirect + github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/kr/pretty v0.2.1 // indirect + github.com/mattn/go-isatty v0.0.12 // indirect + github.com/oklog/run v1.0.0 // indirect + github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect + github.com/vmihailenco/tagparser v0.1.1 // indirect + golang.org/x/mod v0.4.2 // indirect + golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect + golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect + golang.org/x/text v0.3.6 // indirect + golang.org/x/tools v0.1.1 // indirect + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect +)