From b7388800ebcb6b0b2f5014dc4630df9e8ff3be59 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 07:48:45 +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/rust-integration-tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-integration-tests.yml b/.github/workflows/rust-integration-tests.yml index 10392e0..3254b54 100644 --- a/.github/workflows/rust-integration-tests.yml +++ b/.github/workflows/rust-integration-tests.yml @@ -25,6 +25,8 @@ concurrency: 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 @@ -73,13 +75,13 @@ 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 - name: Run integration tests env: - # The integration-test token is stored as a repository secret. + # The integration-test token is stored as a secret of the `tests` environment. APIFY_TOKEN: ${{ secrets.APIFY_TOKEN }} # `example_*` tests run in the `Test examples` step below. run: cargo test --lib --tests --verbose -- --skip example_ --test-threads=4