From 66c54a0810050e59ea0a1b8dbf3063f96c9e5673 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 07:48:55 +0000 Subject: [PATCH] ci: read APIFY_TOKEN from the tests environment The integration-test jobs now declare `environment: tests`, so APIFY_TOKEN comes from that environment secret instead of the repository secret, which is going to be removed. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017ocuAL1S1zQvVFrkkya32J --- .github/workflows/php-integration-tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php-integration-tests.yml b/.github/workflows/php-integration-tests.yml index b58c1fc..7523c00 100644 --- a/.github/workflows/php-integration-tests.yml +++ b/.github/workflows/php-integration-tests.yml @@ -57,6 +57,8 @@ jobs: # without the extension or the token, so both are checked first. integration-zstd: runs-on: ubuntu-latest + # APIFY_TOKEN is an environment secret of the `tests` environment. + environment: tests steps: - name: Checkout uses: actions/checkout@v4 @@ -81,7 +83,7 @@ jobs: exit 1 fi if [ -z "${APIFY_TOKEN}" ]; then - echo "::error::APIFY_TOKEN secret is empty or missing; the zstd integration tests would skip." + echo "::error::APIFY_TOKEN secret (tests environment) is empty or missing; the zstd integration tests would skip." exit 1 fi @@ -92,6 +94,8 @@ jobs: test: runs-on: ubuntu-latest + # APIFY_TOKEN is an environment secret of the `tests` environment. + environment: tests steps: - name: Checkout uses: actions/checkout@v4 @@ -126,7 +130,7 @@ jobs: APIFY_TOKEN: ${{ secrets.APIFY_TOKEN }} run: | if [ -z "${APIFY_TOKEN}" ]; then - echo "::error::APIFY_TOKEN secret is empty or missing; integration tests would not run against the API." + echo "::error::APIFY_TOKEN secret (tests environment) is empty or missing; integration tests would not run against the API." exit 1 fi