From 01da7178aabadccafe092bbe6066823017343194 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 07:47:32 +0000 Subject: [PATCH 1/2] ci: read workflow secrets from repository environments The unit tests run in `unit-tests`, the integration tests in `e2e-tests`, the docs build in `docs` and the Slack failure notification in `pypi`. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_017ocuAKcZMqLZaW1X7NBFhZ --- .github/workflows/_checks.yaml | 7 +++++++ .github/workflows/manual_release_docs.yaml | 3 +++ .github/workflows/on_schedule_regenerate_models.yaml | 3 +++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/_checks.yaml b/.github/workflows/_checks.yaml index 54444a7a9..255072053 100644 --- a/.github/workflows/_checks.yaml +++ b/.github/workflows/_checks.yaml @@ -169,6 +169,9 @@ jobs: unit_tests: name: Unit tests / Unit tests (${{ matrix.os }}, ${{ matrix.python-version }}) if: inputs.run_tests + environment: + name: unit-tests + deployment: false strategy: fail-fast: false matrix: @@ -198,6 +201,10 @@ jobs: ) }} + environment: + name: e2e-tests + deployment: false + strategy: matrix: os: [ubuntu-latest] diff --git a/.github/workflows/manual_release_docs.yaml b/.github/workflows/manual_release_docs.yaml index 0bbf468b2..1762bf444 100644 --- a/.github/workflows/manual_release_docs.yaml +++ b/.github/workflows/manual_release_docs.yaml @@ -34,6 +34,9 @@ env: jobs: build_docs: name: Build docs + environment: + name: docs + deployment: false permissions: contents: read checks: read diff --git a/.github/workflows/on_schedule_regenerate_models.yaml b/.github/workflows/on_schedule_regenerate_models.yaml index 8570ba051..fb5b53cb9 100644 --- a/.github/workflows/on_schedule_regenerate_models.yaml +++ b/.github/workflows/on_schedule_regenerate_models.yaml @@ -201,6 +201,9 @@ jobs: name: Notify Slack on failure needs: regenerate-models if: failure() && github.event_name == 'schedule' + environment: + name: pypi + deployment: false runs-on: ubuntu-latest permissions: contents: read From 2e51972e93be3cf9ce80d97cfcfc979e47d68705 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 07:48:06 +0000 Subject: [PATCH 2/2] ci: drop the unused httpbin and signing tokens The unit tests never read `HTTPBIN_URL`, and the docs have no runnable examples, the only thing `APIFY_SIGNING_TOKEN` signs. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_017ocuAKcZMqLZaW1X7NBFhZ --- .github/workflows/_checks.yaml | 3 --- .github/workflows/manual_release_docs.yaml | 1 - 2 files changed, 4 deletions(-) diff --git a/.github/workflows/_checks.yaml b/.github/workflows/_checks.yaml index 255072053..558410f1a 100644 --- a/.github/workflows/_checks.yaml +++ b/.github/workflows/_checks.yaml @@ -186,7 +186,6 @@ jobs: tests-concurrency: "16" upload-coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.15' }} codecov-token: ${{ secrets.CODECOV_TOKEN }} - apify-httpbin-token: ${{ secrets.APIFY_HTTPBIN_TOKEN }} # Integration tests are inlined (not calling the reusable workflow) to avoid GitHub's compile-time secret # validation for nested reusable workflows, which fails on fork PRs where repo secrets are not available. @@ -283,5 +282,3 @@ jobs: runs-on: ubuntu-latest steps: - uses: apify/actions/python-docs-check@v1.9.0 - with: - apify-signing-token: ${{ secrets.APIFY_SIGNING_TOKEN }} diff --git a/.github/workflows/manual_release_docs.yaml b/.github/workflows/manual_release_docs.yaml index 1762bf444..0dd833559 100644 --- a/.github/workflows/manual_release_docs.yaml +++ b/.github/workflows/manual_release_docs.yaml @@ -119,7 +119,6 @@ jobs: - name: Build docs run: uv run poe build-docs env: - APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }} SEGMENT_TOKEN: ${{ secrets.SEGMENT_TOKEN }} - name: Upload GitHub Pages artifact