From 9f4155ad2a544ceb131d73de6f443f2cf212f41f Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Fri, 22 Nov 2024 17:48:20 +0100 Subject: [PATCH] Update GH actions, terraform version, fix Go version (#1022) * Updated go version to go toolchain version Signed-off-by: Sebastian Schuster * Updated most Github Action versions Signed-off-by: Sebastian Schuster * Updated terraform action version and terraform version Signed-off-by: Sebastian Schuster --------- Signed-off-by: Sebastian Schuster --- .github/workflows/codeql-analysis.yml | 10 +++++----- .github/workflows/dependency-submission.yml | 6 +++--- .github/workflows/release.yml | 8 ++++---- .github/workflows/test.yml | 16 ++++++++-------- go.mod | 2 +- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 70853fca2..b247f9302 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,17 +38,17 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: 'go.mod' cache: true # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -59,7 +59,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -73,4 +73,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml index 30876f3b9..d0b88c069 100644 --- a/.github/workflows/dependency-submission.yml +++ b/.github/workflows/dependency-submission.yml @@ -12,15 +12,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: 'go.mod' cache: true - name: Run snapshot action - uses: actions/go-dependency-submission@v1 + uses: actions/go-dependency-submission@v2 with: go-mod-path: go.mod diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b27ac1082..9c4d971ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Wait for acceptance tests id: wait - uses: "WyriHaximus/github-action-wait-for-status@v1.4.0" + uses: "WyriHaximus/github-action-wait-for-status@v1.8.0" with: ignoreActions: Wait for acceptance tests checkInterval: 30 @@ -28,17 +28,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: 'go.mod' cache: true - name: Import GPG key id: import_gpg - uses: crazy-max/ghaction-import-gpg@v2 + uses: crazy-max/ghaction-import-gpg@v6 env: GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b66f6877e..28d65f374 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,12 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 # we want the HEAD commit and the previous commit to compare changed files - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: 'go.mod' cache: true @@ -31,7 +31,7 @@ jobs: # we only want to run tests if any code changes (not for README or docs changes) - name: Check Changed Files id: files - uses: tj-actions/changed-files@v41.0.0 + uses: tj-actions/changed-files@v45 with: files: | .github @@ -69,19 +69,19 @@ jobs: cancel-in-progress: true steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: 'go.mod' cache: true - name: Setup Terraform - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v3 with: terraform_wrapper: false - terraform_version: 1.9.5 + terraform_version: 1.9.8 - name: Start Keycloak Container run: | @@ -99,7 +99,7 @@ jobs: run: ./scripts/wait-for-local-keycloak.sh && ./scripts/create-terraform-client.sh - name: Get Keycloak Version - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: keycloak-version env: KEYCLOAK_VERSION: ${{ matrix.keycloak-version }} diff --git a/go.mod b/go.mod index 2a9bc1eba..5cbe6fc56 100644 --- a/go.mod +++ b/go.mod @@ -54,4 +54,4 @@ require ( google.golang.org/protobuf v1.33.0 // indirect ) -go 1.22 +go 1.22.0