From c9ad51258ec67f5f107dc0e5d7b9f248bf607592 Mon Sep 17 00:00:00 2001 From: alafanechere Date: Thu, 12 Dec 2024 17:48:00 +0100 Subject: [PATCH] Revert "disable pat rate limit check on connector test: probably useless" This reverts commit 62997131edbed77761d497c2321e7666e6344685. --- .github/workflows/connectors_tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/connectors_tests.yml b/.github/workflows/connectors_tests.yml index 97a6fc03f06f..f31ca6d88e29 100644 --- a/.github/workflows/connectors_tests.yml +++ b/.github/workflows/connectors_tests.yml @@ -83,6 +83,10 @@ jobs: steps: - name: Checkout Airbyte uses: actions/checkout@v4 + - name: Check PAT rate limits + run: | + ./tools/bin/find_non_rate_limited_PAT \ + ${{ secrets.GH_PAT_MAINTENANCE_OSS }} - name: Extract branch name [WORKFLOW DISPATCH] shell: bash if: github.event_name == 'workflow_dispatch' @@ -108,7 +112,7 @@ jobs: sentry_dsn: ${{ secrets.SENTRY_AIRBYTE_CI_DSN }} git_branch: ${{ steps.extract_branch.outputs.branch }} git_revision: ${{ steps.fetch_last_commit_id_wd.outputs.commit_id }} - github_token: ${{ github.token }} + github_token: ${{ env.PAT }} s3_build_cache_access_key_id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }} s3_build_cache_secret_key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }} subcommand: "connectors ${{ github.event.inputs.test-connectors-options }} test" @@ -125,7 +129,7 @@ jobs: sentry_dsn: ${{ secrets.SENTRY_AIRBYTE_CI_DSN }} git_branch: ${{ github.head_ref }} git_revision: ${{ steps.fetch_last_commit_id_pr.outputs.commit_id }} - github_token: ${{ github.token }} + github_token: ${{ env.PAT }} s3_build_cache_access_key_id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }} s3_build_cache_secret_key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }} # A connector test can't take more than 5 hours to run (5 * 60 * 60 = 18000 seconds)