From fa1e6c0bb2116f2a3684f29714fc77a09223aa3d Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Fri, 17 Feb 2023 12:31:55 +0100 Subject: [PATCH] chore(workflow): update actions (node 16) (#5177) --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/e2e.yml | 6 +++--- .github/workflows/release-channels.yml | 8 ++++---- .github/workflows/test-code.yml | 6 +++--- .github/workflows/zitadel.yml | 14 +++++++------- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 64b4646af5..6ca453c32c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,17 +18,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 # Override language selection by uncommenting this and choosing your languages with: languages: go, javascript # 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@v1 + uses: github/codeql-action/autobuild@v2 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines @@ -38,4 +38,4 @@ jobs: # make bootstrap # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 894aea2c60..bc56eb879e 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -22,7 +22,7 @@ jobs: ZITADEL_IMAGE_REGISTRY: 'ghcr.io/zitadel/zitadel' steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set TAG env manual trigger if: github.event_name == 'workflow_dispatch' run: echo "ZITADEL_IMAGE=${ZITADEL_IMAGE_REGISTRY}:${{ github.event.inputs.releaseversion }}" >> $GITHUB_ENV @@ -35,7 +35,7 @@ jobs: if: github.event_name == 'workflow_run' run: echo "ZITADEL_IMAGE=${ZITADEL_IMAGE_REGISTRY}:${{ steps.get-latest-tag.outputs.tag }}" >> $GITHUB_ENV - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: driver: docker install: true @@ -54,7 +54,7 @@ jobs: working-directory: e2e - name: Archive production tests ${{ matrix.browser }} if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: production-tests-${{ matrix.browser }} path: | diff --git a/.github/workflows/release-channels.yml b/.github/workflows/release-channels.yml index 7f7dcdd9ff..864a0a7778 100644 --- a/.github/workflows/release-channels.yml +++ b/.github/workflows/release-channels.yml @@ -19,18 +19,18 @@ jobs: DOCKER_BUILDKIT: 1 steps: - name: Source checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: get stable tag run: echo STABLE_RELEASE=$(yq eval '.stable' release-channels.yaml) >> $GITHUB_ENV - name: checkout stable tag - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 ref: ${{ env.STABLE_RELEASE }} - name: GitHub Container Registry Login - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} @@ -41,7 +41,7 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Google Artifact Registry Login - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: europe-docker.pkg.dev username: _json_key_base64 diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index 0e724a66d4..5c9e39024c 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -21,9 +21,9 @@ jobs: - name: Source checkout uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: driver: docker install: true @@ -63,7 +63,7 @@ jobs: working-directory: e2e - name: Archive Test Results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: pull-request-tests path: | diff --git a/.github/workflows/zitadel.yml b/.github/workflows/zitadel.yml index 2fee65de3b..34fd88696f 100644 --- a/.github/workflows/zitadel.yml +++ b/.github/workflows/zitadel.yml @@ -17,19 +17,19 @@ jobs: DOCKER_BUILDKIT: 1 steps: - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.19 - name: Source checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Fetch all tags run: git fetch --force --tags - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: driver: docker install: true @@ -43,7 +43,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: GitHub Container Registry Login if: steps.semantic.outputs.new_release_published == 'true' && github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} @@ -55,12 +55,12 @@ jobs: private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Google Artifact Registry Login if: steps.semantic.outputs.new_release_published == 'true' && github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: europe-docker.pkg.dev username: _json_key_base64 password: ${{ secrets.GCR_JSON_KEY_BASE64 }} - - uses: goreleaser/goreleaser-action@v2 + - uses: goreleaser/goreleaser-action@v3 name: Publish ZITADEL if: steps.semantic.outputs.new_release_published == 'true' && github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' with: