From 8e0635dc4b6cb25e3f9f9b8a9e25d178649a544c Mon Sep 17 00:00:00 2001 From: Zac Clifton <43915749+Cliftonz@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:45:56 -0400 Subject: [PATCH] Updated GitHub Actions to use latest versions (#5669) Upgraded various GitHub actions to their latest versions for improved performance and features. The upgrades include actions for setting up node, checkout, AWS credentials configuration, and terraform setup. The changes pertain to various workflows and actions across the repository. --- .../actions/checkout-submodules/action.yml | 2 +- .github/actions/setup-project/action.yml | 2 +- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/community-label.yml | 6 +++--- .github/workflows/dev-deploy-api.yml | 6 +++--- .github/workflows/dev-deploy-inbound-mail.yml | 6 +++--- .../workflows/dev-deploy-web-component.yml | 2 +- .github/workflows/dev-deploy-worker.yml | 2 +- .github/workflows/dev-deploy-ws.yml | 6 +++--- .github/workflows/issue-label.yml | 6 +++--- .github/workflows/jarvis.yml | 2 +- .github/workflows/milestone-assign.yml | 6 +++--- .github/workflows/prod-deploy-api.yml | 2 +- .../workflows/prod-deploy-inbound-mail.yml | 2 +- .../workflows/prod-deploy-web-component.yml | 2 +- .github/workflows/prod-deploy-worker.yml | 2 +- .github/workflows/prod-deploy-ws.yml | 2 +- .github/workflows/release-helm.yml | 2 +- .github/workflows/reusable-api-e2e.yml | 4 ++-- .../workflows/reusable-app-service-deploy.yml | 6 +++--- .github/workflows/reusable-docker.yml | 2 +- .github/workflows/reusable-embed-deploy.yml | 2 +- .../workflows/reusable-inbound-mail-e2e.yml | 4 ++-- .../reusable-notification-center.yml | 2 +- .github/workflows/reusable-web-deploy.yml | 2 +- .github/workflows/reusable-web-e2e.yml | 4 ++-- .github/workflows/reusable-webhook-e2e.yml | 2 +- .github/workflows/reusable-widget-deploy.yml | 2 +- .github/workflows/reusable-widget-e2e.yml | 4 ++-- .github/workflows/reusable-worker-e2e.yml | 4 ++-- .../reusable-workers-service-deploy.yml | 6 +++--- .github/workflows/reusable-ws-e2e.yml | 4 ++-- .github/workflows/rollback.yml | 2 +- .github/workflows/tag-images.yml | 4 ++-- .github/workflows/test.yml | 20 +++++++++---------- 35 files changed, 68 insertions(+), 68 deletions(-) diff --git a/.github/actions/checkout-submodules/action.yml b/.github/actions/checkout-submodules/action.yml index 4130e6dcbd7..ebd47b6aa45 100644 --- a/.github/actions/checkout-submodules/action.yml +++ b/.github/actions/checkout-submodules/action.yml @@ -20,7 +20,7 @@ runs: steps: - name: Checkout submodule if: ${{ inputs.enabled == 'true' }} - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ inputs.submodule_token }} repository: novuhq/packages-enterprise diff --git a/.github/actions/setup-project/action.yml b/.github/actions/setup-project/action.yml index 49cc590a72f..dc13839cae3 100644 --- a/.github/actions/setup-project/action.yml +++ b/.github/actions/setup-project/action.yml @@ -27,7 +27,7 @@ runs: - name: Install pnpm uses: pnpm/action-setup@v3 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 name: ⚙️ Setup Node Version with: node-version: '20.8.1' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b4292cd564d..29281d9f972 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,7 +11,7 @@ # name: "CodeQL" concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true on: @@ -41,7 +41,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/community-label.yml b/.github/workflows/community-label.yml index 3f9a2172dc9..b57aea56e3a 100644 --- a/.github/workflows/community-label.yml +++ b/.github/workflows/community-label.yml @@ -7,7 +7,7 @@ on: - '!prod' concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true jobs: @@ -15,9 +15,9 @@ jobs: name: Verify runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 20.8.1 - name: Install Octokit diff --git a/.github/workflows/dev-deploy-api.yml b/.github/workflows/dev-deploy-api.yml index 6ccf1d35f9b..898c980b55b 100644 --- a/.github/workflows/dev-deploy-api.yml +++ b/.github/workflows/dev-deploy-api.yml @@ -45,7 +45,7 @@ jobs: matrix: name: ['novu/api-ee', 'novu/api'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: ${{ contains (matrix.name,'-ee') }} token: ${{ secrets.SUBMODULES_TOKEN }} @@ -73,7 +73,7 @@ jobs: - name: Configure AWS credentials if: ${{ contains (matrix.name,'-ee') }} - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -81,7 +81,7 @@ jobs: - name: Terraform setup if: ${{ contains (matrix.name,'-ee') }} - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v3 with: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} terraform_version: 1.5.5 diff --git a/.github/workflows/dev-deploy-inbound-mail.yml b/.github/workflows/dev-deploy-inbound-mail.yml index c8646e4e099..2d18fb0b0ae 100644 --- a/.github/workflows/dev-deploy-inbound-mail.yml +++ b/.github/workflows/dev-deploy-inbound-mail.yml @@ -44,7 +44,7 @@ jobs: name: ['novu/inbound-mail-ee'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project - uses: crazy-max/ghaction-setup-docker@v2 @@ -112,14 +112,14 @@ jobs: path: cloud-infra - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: eu-west-2 - name: Terraform setup - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v3 with: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} terraform_version: 1.5.5 diff --git a/.github/workflows/dev-deploy-web-component.yml b/.github/workflows/dev-deploy-web-component.yml index f7cb6c7a8ca..a691a2a552e 100644 --- a/.github/workflows/dev-deploy-web-component.yml +++ b/.github/workflows/dev-deploy-web-component.yml @@ -21,7 +21,7 @@ jobs: environment: Development steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download the artifact uses: actions/download-artifact@v4 diff --git a/.github/workflows/dev-deploy-worker.yml b/.github/workflows/dev-deploy-worker.yml index 8fcfe2ca0ae..66ac46c64a3 100644 --- a/.github/workflows/dev-deploy-worker.yml +++ b/.github/workflows/dev-deploy-worker.yml @@ -47,7 +47,7 @@ jobs: matrix: name: ['novu/worker-ee', 'novu/worker'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: ${{ contains (matrix.name,'-ee') }} token: ${{ secrets.SUBMODULES_TOKEN }} diff --git a/.github/workflows/dev-deploy-ws.yml b/.github/workflows/dev-deploy-ws.yml index 84c010fdb3c..68e20ef01c1 100644 --- a/.github/workflows/dev-deploy-ws.yml +++ b/.github/workflows/dev-deploy-ws.yml @@ -37,7 +37,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: ${{ contains (matrix.name,'-ee') }} token: ${{ secrets.SUBMODULES_TOKEN }} @@ -72,7 +72,7 @@ jobs: echo "SERVICE_NAME=$(basename "${service//-/-}")" >> $GITHUB_ENV - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -86,7 +86,7 @@ jobs: path: cloud-infra - name: Terraform setup - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v3 with: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} terraform_version: 1.5.5 diff --git a/.github/workflows/issue-label.yml b/.github/workflows/issue-label.yml index 29a5e8f9356..e313538befd 100644 --- a/.github/workflows/issue-label.yml +++ b/.github/workflows/issue-label.yml @@ -5,7 +5,7 @@ on: types: [opened] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true jobs: @@ -13,9 +13,9 @@ jobs: name: Verify runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 20.8.1 - name: Install Octokit diff --git a/.github/workflows/jarvis.yml b/.github/workflows/jarvis.yml index 83551256773..b5144c331b4 100644 --- a/.github/workflows/jarvis.yml +++ b/.github/workflows/jarvis.yml @@ -10,7 +10,7 @@ jobs: permissions: issues: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - id: get-comment-body run: | ls -la diff --git a/.github/workflows/milestone-assign.yml b/.github/workflows/milestone-assign.yml index 517fef45c76..c6235cb8bd0 100644 --- a/.github/workflows/milestone-assign.yml +++ b/.github/workflows/milestone-assign.yml @@ -5,7 +5,7 @@ on: types: [submitted] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true jobs: @@ -17,9 +17,9 @@ jobs: pull-requests: write runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 20.8.1 - name: Install Octokit diff --git a/.github/workflows/prod-deploy-api.yml b/.github/workflows/prod-deploy-api.yml index f7f7d303bc7..37b6031ff9a 100644 --- a/.github/workflows/prod-deploy-api.yml +++ b/.github/workflows/prod-deploy-api.yml @@ -35,7 +35,7 @@ jobs: deployments: write id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: ${{ contains (matrix.name,'-ee') }} token: ${{ secrets.SUBMODULES_TOKEN }} diff --git a/.github/workflows/prod-deploy-inbound-mail.yml b/.github/workflows/prod-deploy-inbound-mail.yml index e3903fad4bf..4d47eac18e9 100644 --- a/.github/workflows/prod-deploy-inbound-mail.yml +++ b/.github/workflows/prod-deploy-inbound-mail.yml @@ -30,7 +30,7 @@ jobs: matrix: name: [ 'novu/inbound-mail-ee', 'novu/inbound-mail' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project - name: build api diff --git a/.github/workflows/prod-deploy-web-component.yml b/.github/workflows/prod-deploy-web-component.yml index 4b8698bbae1..2ed532e3b93 100644 --- a/.github/workflows/prod-deploy-web-component.yml +++ b/.github/workflows/prod-deploy-web-component.yml @@ -15,7 +15,7 @@ jobs: environment: Production steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download the artifact uses: actions/download-artifact@v4 diff --git a/.github/workflows/prod-deploy-worker.yml b/.github/workflows/prod-deploy-worker.yml index 42e7899638c..75663a6266d 100644 --- a/.github/workflows/prod-deploy-worker.yml +++ b/.github/workflows/prod-deploy-worker.yml @@ -35,7 +35,7 @@ jobs: deployments: write id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: ${{ contains (matrix.name,'-ee') }} token: ${{ secrets.SUBMODULES_TOKEN }} diff --git a/.github/workflows/prod-deploy-ws.yml b/.github/workflows/prod-deploy-ws.yml index f064ef5246e..f0d78b2832f 100644 --- a/.github/workflows/prod-deploy-ws.yml +++ b/.github/workflows/prod-deploy-ws.yml @@ -29,7 +29,7 @@ jobs: outputs: docker_image: ${{ steps.build-image.outputs.IMAGE }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: ${{ contains (matrix.name,'-ee') }} token: ${{ secrets.SUBMODULES_TOKEN }} diff --git a/.github/workflows/release-helm.yml b/.github/workflows/release-helm.yml index c777a891c58..250873976c0 100644 --- a/.github/workflows/release-helm.yml +++ b/.github/workflows/release-helm.yml @@ -9,7 +9,7 @@ jobs: contents: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: stefanprodan/helm-gh-pages@v1.7.0 with: diff --git a/.github/workflows/reusable-api-e2e.yml b/.github/workflows/reusable-api-e2e.yml index 286c7602002..58e8f89f2ce 100644 --- a/.github/workflows/reusable-api-e2e.yml +++ b/.github/workflows/reusable-api-e2e.yml @@ -55,7 +55,7 @@ jobs: needs: [check_submodule_token] steps: # checkout with submodules if token is provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 name: Checkout with submodules if: ${{ needs.check_submodule_token.outputs.has_token == 'true' && inputs.ee }} with: @@ -63,7 +63,7 @@ jobs: token: ${{ secrets.SUBMODULES_TOKEN }} # else checkout without submodules if the token is not provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 name: Checkout if: ${{ needs.check_submodule_token.outputs.has_token != 'true' || !contains (inputs.job-name,'-ee') }} diff --git a/.github/workflows/reusable-app-service-deploy.yml b/.github/workflows/reusable-app-service-deploy.yml index 771adba4bf5..3c8fb543c7c 100644 --- a/.github/workflows/reusable-app-service-deploy.yml +++ b/.github/workflows/reusable-app-service-deploy.yml @@ -45,7 +45,7 @@ jobs: path: cloud-infra - name: Terraform setup - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v3 with: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} terraform_version: 1.5.5 @@ -68,7 +68,7 @@ jobs: echo "aws_region=$(terraform output -json aws_region | jq -r .)" >> $GITHUB_ENV - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -95,7 +95,7 @@ jobs: cluster: ${{ env.ecs_cluster }} wait-for-service-stability: true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: ${{ inputs.deploy_sentry_release }} - name: get-npm-version diff --git a/.github/workflows/reusable-docker.yml b/.github/workflows/reusable-docker.yml index df8419abcde..977205e0603 100644 --- a/.github/workflows/reusable-docker.yml +++ b/.github/workflows/reusable-docker.yml @@ -61,7 +61,7 @@ jobs: matrix: name: [ '${{ inputs.package_name }}-ee', '${{ inputs.package_name }}' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: ${{ contains (matrix.name,'-ee') }} token: ${{ secrets.SUBMODULES_TOKEN }} diff --git a/.github/workflows/reusable-embed-deploy.yml b/.github/workflows/reusable-embed-deploy.yml index fa6d16744b0..a28a2718ef0 100644 --- a/.github/workflows/reusable-embed-deploy.yml +++ b/.github/workflows/reusable-embed-deploy.yml @@ -36,7 +36,7 @@ jobs: deployments: write id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project with: slim: 'true' diff --git a/.github/workflows/reusable-inbound-mail-e2e.yml b/.github/workflows/reusable-inbound-mail-e2e.yml index 400d6c504c7..c655735457e 100644 --- a/.github/workflows/reusable-inbound-mail-e2e.yml +++ b/.github/workflows/reusable-inbound-mail-e2e.yml @@ -34,13 +34,13 @@ jobs: echo "has_token=false" >> $GITHUB_OUTPUT fi # checkout with submodules if token is provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token == 'true' with: submodules: ${{ inputs.ee }} token: ${{ secrets.SUBMODULES_TOKEN }} # else checkout without submodules if the token is not provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token != 'true' - uses: ./.github/actions/setup-project - uses: ./.github/actions/setup-redis-cluster diff --git a/.github/workflows/reusable-notification-center.yml b/.github/workflows/reusable-notification-center.yml index ea1ac3aea69..c67ea65c8e4 100644 --- a/.github/workflows/reusable-notification-center.yml +++ b/.github/workflows/reusable-notification-center.yml @@ -7,7 +7,7 @@ jobs: build_test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project diff --git a/.github/workflows/reusable-web-deploy.yml b/.github/workflows/reusable-web-deploy.yml index 99bffdf3556..16d5c876809 100644 --- a/.github/workflows/reusable-web-deploy.yml +++ b/.github/workflows/reusable-web-deploy.yml @@ -58,7 +58,7 @@ jobs: deployments: write id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 name: Checkout with submodules with: submodules: true diff --git a/.github/workflows/reusable-web-e2e.yml b/.github/workflows/reusable-web-e2e.yml index db10deca1dd..ce9a64ee67a 100644 --- a/.github/workflows/reusable-web-e2e.yml +++ b/.github/workflows/reusable-web-e2e.yml @@ -51,13 +51,13 @@ jobs: fi # checkout with submodules if token is provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token == 'true' with: submodules: ${{ inputs.ee }} token: ${{ secrets.SUBMODULES_TOKEN }} # else checkout without submodules if the token is not provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token != 'true' - uses: ./.github/actions/setup-project id: setup-project diff --git a/.github/workflows/reusable-webhook-e2e.yml b/.github/workflows/reusable-webhook-e2e.yml index fff41335a50..48d7a123800 100644 --- a/.github/workflows/reusable-webhook-e2e.yml +++ b/.github/workflows/reusable-webhook-e2e.yml @@ -14,7 +14,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project diff --git a/.github/workflows/reusable-widget-deploy.yml b/.github/workflows/reusable-widget-deploy.yml index d3b8425216b..d4d1b4295b6 100644 --- a/.github/workflows/reusable-widget-deploy.yml +++ b/.github/workflows/reusable-widget-deploy.yml @@ -49,7 +49,7 @@ jobs: deployments: write id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project with: slim: 'true' diff --git a/.github/workflows/reusable-widget-e2e.yml b/.github/workflows/reusable-widget-e2e.yml index 9377c068543..07f3ed0ad21 100644 --- a/.github/workflows/reusable-widget-e2e.yml +++ b/.github/workflows/reusable-widget-e2e.yml @@ -34,13 +34,13 @@ jobs: echo "has_token=false" >> $GITHUB_OUTPUT fi # checkout with submodules if token is provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token == 'true' with: submodules: ${{ inputs.ee }} token: ${{ secrets.SUBMODULES_TOKEN }} # else checkout without submodules if the token is not provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token != 'true' - uses: ./.github/actions/setup-project diff --git a/.github/workflows/reusable-worker-e2e.yml b/.github/workflows/reusable-worker-e2e.yml index 3959bd789ad..5407fc9570c 100644 --- a/.github/workflows/reusable-worker-e2e.yml +++ b/.github/workflows/reusable-worker-e2e.yml @@ -34,13 +34,13 @@ jobs: echo "has_token=false" >> $GITHUB_OUTPUT fi # checkout with submodules if token is provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token == 'true' with: submodules: ${{ inputs.ee }} token: ${{ secrets.SUBMODULES_TOKEN }} # else checkout without submodules if the token is not provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token != 'true' - uses: ./.github/actions/setup-project diff --git a/.github/workflows/reusable-workers-service-deploy.yml b/.github/workflows/reusable-workers-service-deploy.yml index 28e52ef8054..50447f00959 100644 --- a/.github/workflows/reusable-workers-service-deploy.yml +++ b/.github/workflows/reusable-workers-service-deploy.yml @@ -46,7 +46,7 @@ jobs: path: cloud-infra - name: Terraform setup - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v3 with: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} terraform_version: 1.5.5 @@ -82,7 +82,7 @@ jobs: - run: echo "Deploying ${{ matrix.name }} to ${{ inputs.terraform_workspace }} And Docker Tag ${{ inputs.docker_image }}" - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -109,7 +109,7 @@ jobs: cluster: ${{ needs.infrastructure_data.outputs.ecs_cluster }} wait-for-service-stability: true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: ${{ inputs.deploy_sentry_release }} - name: get-npm-version diff --git a/.github/workflows/reusable-ws-e2e.yml b/.github/workflows/reusable-ws-e2e.yml index 40ca3a1afa1..ea99d61fb44 100644 --- a/.github/workflows/reusable-ws-e2e.yml +++ b/.github/workflows/reusable-ws-e2e.yml @@ -34,13 +34,13 @@ jobs: echo "has_token=false" >> $GITHUB_OUTPUT fi # checkout with submodules if token is provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token == 'true' with: submodules: ${{ inputs.ee }} token: ${{ secrets.SUBMODULES_TOKEN }} # else checkout without submodules if the token is not provided - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: steps.setup.outputs.has_token != 'true' - uses: ./.github/actions/setup-project diff --git a/.github/workflows/rollback.yml b/.github/workflows/rollback.yml index 44c7dec494a..a6414c5ef4e 100644 --- a/.github/workflows/rollback.yml +++ b/.github/workflows/rollback.yml @@ -85,7 +85,7 @@ jobs: path: cloud-infra - name: Terraform setup - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v3 with: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} terraform_version: 1.5.5 diff --git a/.github/workflows/tag-images.yml b/.github/workflows/tag-images.yml index 9ea6f242c0b..daf317f65b8 100644 --- a/.github/workflows/tag-images.yml +++ b/.github/workflows/tag-images.yml @@ -21,10 +21,10 @@ jobs: deployments: write steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup kernel for react native, increase watchers run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: '20.8.1' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 288f1e200e3..38e3bf55a92 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: Testing Pipeline concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true on: @@ -14,7 +14,7 @@ jobs: environment: Linting steps: - name: 'Checkout Repository' - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: 'Dependency Review' uses: actions/dependency-review-action@v4 @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest environment: Linting steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run Spell Check uses: streetsidesoftware/cspell-action@v6 with: @@ -78,7 +78,7 @@ jobs: else echo "branch=main" >> $GITHUB_OUTPUT fi - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: ./.github/actions/setup-project @@ -123,7 +123,7 @@ jobs: timeout-minutes: 80 steps: - run: echo '${{ needs.get-affected.outputs.test-providers }}' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project with: slim: 'true' @@ -148,7 +148,7 @@ jobs: - name: Affected packages run: echo '${{ needs.get-affected.outputs.test-packages }}' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project with: @@ -171,10 +171,10 @@ jobs: steps: - name: Affected libs run: echo '${{ needs.get-affected.outputs.test-libs }}' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project - + - name: Run Lint, Build, Test uses: mansagroup/nrwl-nx-action@v3 with: @@ -214,7 +214,7 @@ jobs: id-token: write steps: - run: echo ${{ matrix.projectName }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project with: # Don't run redis and etc... for other unit tests @@ -238,7 +238,7 @@ jobs: deployments: write id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/setup-project - uses: ./.github/actions/setup-redis-cluster - uses: ./.github/actions/run-api