Skip to content

Commit

Permalink
Update setup-gcloud, goreleaser and golangci-lint (#825)
Browse files Browse the repository at this point in the history
Updating setup-gcloud should address the following warning:
```
The v0 series of google-github-actions/setup-gcloud is no longer maintained. It will not receive updates, improvements, or security patches. Please upgrade to the latest supported versions: 
```

Also update goreleaser/goreleaser-action and golangci-lint-action to
address node version deprecations

These should address all addressable warnings on AWS, Azure and GCP

#772
  • Loading branch information
VenelinMartinov authored Feb 20, 2024
1 parent 35a7d54 commit 985d3d5
Show file tree
Hide file tree
Showing 35 changed files with 57 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
go-version: 1.21.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 1 -f .goreleaser.cf2pulumi.yml release --rm-dist --timeout 60m0s
version: latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 release --rm-dist --timeout 60m0s
version: latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v${{ github.event.inputs.message }}" >>
$GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 1 -f .goreleaser.arm2pulumi.yml release --rm-dist --timeout 60m0s
version: latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 release --rm-dist --timeout 60m0s
version: latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 release --rm-dist --timeout 60m0s
version: latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install gotestfmt
Expand Down Expand Up @@ -384,7 +384,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install gotestfmt
Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install gotestfmt
Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 release --rm-dist --timeout 60m0s
version: latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install gotestfmt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -411,7 +411,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down Expand Up @@ -587,7 +587,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -648,7 +648,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -681,7 +681,7 @@ jobs:
with:
go-version: ${{ env.GOVERSION }}
- name: golangci-lint provider pkg
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: -c ../../.golangci.yml --timeout ${{ env.GOLANGCI_LINT_TIMEOUT }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -402,7 +402,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down Expand Up @@ -578,7 +578,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -639,7 +639,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -402,7 +402,7 @@ jobs:
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)"
>> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 release --rm-dist --timeout 60m0s
version: latest
Expand Down Expand Up @@ -607,7 +607,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -668,7 +668,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -448,7 +448,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -512,7 +512,7 @@ jobs:
env.GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.GOOGLE_CI_SERVICE_ACCOUNT_EMAIL }}
- name: Setup gcloud auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
install_components: gke-gcloud-auth-plugin
- name: Install Kubectl
Expand Down Expand Up @@ -545,7 +545,7 @@ jobs:
with:
go-version: ${{ env.GOVERSION }}
- name: golangci-lint provider pkg
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: -c ../../.golangci.yml --timeout ${{ env.GOLANGCI_LINT_TIMEOUT }}
Expand Down
6 changes: 3 additions & 3 deletions native-provider-ci/src/action-versions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Languages
export const goLint = "golangci/golangci-lint-action@v3";
export const goLint = "golangci/golangci-lint-action@v4";
export const setupGo = "actions/setup-go@v5";
export const setupDotNet = "actions/setup-dotnet@v4";
export const setupJava = "actions/setup-java@v4";
Expand All @@ -11,11 +11,11 @@ export const setupPython = "actions/setup-python@v5";
export const azureLogin = "azure/login@v1";
export const configureAwsCredentials =
"aws-actions/configure-aws-credentials@v4";
export const setupGcloud = "google-github-actions/setup-gcloud@v0";
export const setupGcloud = "google-github-actions/setup-gcloud@v2";
export const googleAuth = "google-github-actions/auth@v0";

// Tools
export const goReleaser = "goreleaser/goreleaser-action@v2";
export const goReleaser = "goreleaser/goreleaser-action@v5";
export const gradleBuildAction = "gradle/gradle-build-action@v3";
export const installGhRelease = "jaxxstorm/[email protected]";
export const installPulumiCli = "pulumi/actions@v5";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ actionVersions:
setupPython: actions/setup-python@v5

configureAwsCredentials: aws-actions/configure-aws-credentials@v4
setupGcloud: google-github-actions/setup-gcloud@v0
setupGcloud: google-github-actions/setup-gcloud@v2
googleAuth: google-github-actions/auth@v2
goReleaser: goreleaser/goreleaser-action@v2
goReleaser: goreleaser/goreleaser-action@v5
installGhRelease: jaxxstorm/[email protected]
checkout: actions/checkout@v4
pulumictlTag: v0.0.46
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
continue-on-error: true
run: make upstream
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.55.2
working-directory: provider
Expand Down
2 changes: 1 addition & 1 deletion provider-ci/test-workflows/aws/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
continue-on-error: true
run: make upstream
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.55.2
working-directory: provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ jobs:
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 1 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
150m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ jobs:
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 1 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
150m0s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ jobs:
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 1 release --rm-dist --timeout 150m0s
version: latest
Expand Down
Loading

0 comments on commit 985d3d5

Please sign in to comment.