From ed0588f02917e586ae485b50bbacd5c953d85f87 Mon Sep 17 00:00:00 2001 From: Mish Ushakov <10400064+mishushakov@users.noreply.github.com> Date: Wed, 5 Aug 2026 16:33:34 +0200 Subject: [PATCH] fix(ci): use E2B_API_KEY instead of deprecated E2B_ACCESS_TOKEN The cleanup-build-template job was the last place still authenticating with an access token, and it started failing with: [401] unauthorized: Invalid Access token E2B_ACCESS_TOKEN is deprecated and no longer accepted. Switch the cleanup workflow to E2B_API_KEY, matching every other job. The same key builds the template, so it has the right team scope. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/cleanup_build_template.yml | 4 ++-- .github/workflows/pull_request.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cleanup_build_template.yml b/.github/workflows/cleanup_build_template.yml index 9878474c..329a1eda 100644 --- a/.github/workflows/cleanup_build_template.yml +++ b/.github/workflows/cleanup_build_template.yml @@ -3,7 +3,7 @@ name: Cleanup Build Template on: workflow_call: secrets: - E2B_TESTS_ACCESS_TOKEN: + E2B_API_KEY: required: true inputs: E2B_DOMAIN: @@ -29,5 +29,5 @@ jobs: run: | e2b template delete -y "${{ inputs.E2B_TESTS_TEMPLATE }}" env: - E2B_ACCESS_TOKEN: ${{ secrets.E2B_TESTS_ACCESS_TOKEN }} + E2B_API_KEY: ${{ secrets.E2B_API_KEY }} E2B_DOMAIN: ${{ inputs.E2B_DOMAIN }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 7ed194c9..13d1234a 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -49,7 +49,7 @@ jobs: needs: [build-template, js-sdk, python-sdk, performance-tests] if: always() && !contains(needs.build-template.result, 'failure') && !contains(needs.build-template.result, 'cancelled') secrets: - E2B_TESTS_ACCESS_TOKEN: ${{ secrets.E2B_TESTS_ACCESS_TOKEN }} + E2B_API_KEY: ${{ secrets.E2B_API_KEY }} with: E2B_DOMAIN: ${{ vars.E2B_DOMAIN }} E2B_TESTS_TEMPLATE: ${{ needs.build-template.outputs.template_id }}