chore(ci): prune the retired gh-aw get-green pair #2610
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # <fleet-canonical> | |
| # Managed by socket-wheelhouse. Don't edit this block locally — edit | |
| # template/base/.github/workflows/ci.yml upstream and re-cascade via | |
| # `pnpm run sync`. Fleet CI runs check + test using the LOCAL composite actions | |
| # under .github/actions/ (inlined — no cross-repo reusable, no `uses:@sha` for | |
| # first-party). Repo-owned jobs go BELOW the END marker (still under the | |
| # top-level `jobs:` key). See scripts/repo/sync-scaffolding/checks/workflow-fleet-block.mts. | |
| name: ⚡ CI | |
| # PUSH, never pull_request. The fleet takes no outside contributions and | |
| # lands on main directly, so a pull_request trigger adds no coverage a push | |
| # trigger does not already give — and it is the fragile half: GitHub has | |
| # narrowed pull_request defaults for security, and a silently non-firing | |
| # trigger reads as a green repo with no CI at all. | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['*'] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # Fleet no-phone-home posture: CI runners don't source the shell-rc that dev | |
| # machines get from setup-security-tools, so set every FLEET_ENV knob | |
| # workflow-level or the telemetry-env-is-disabled + | |
| # package-manager-auto-update-is-disabled gates (under `check --all`) fail. | |
| # Lockstep source: .claude/hooks/fleet/_shared/fleet-env.mts (FLEET_ENV) — | |
| # the telemetry-env-is-disabled check asserts each knob at CI runtime. | |
| env: | |
| CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: '1' | |
| COREPACK_ENABLE_PROJECT_SPEC: '0' | |
| DISABLE_TELEMETRY: '1' | |
| DO_NOT_TRACK: '1' | |
| NO_UPDATE_NOTIFIER: '1' | |
| OTEL_SDK_DISABLED: 'true' | |
| jobs: | |
| # First step of every job is the third-party actions/checkout (GitHub fetches | |
| # it independently) to populate the workspace so the LOCAL `./.github/actions/*` | |
| # composites resolve. setup-and-install then re-checks-out — full history | |
| # (fetch-depth 0) in the check job, since the commit-history checks it runs | |
| # (AI-attribution, release-boundary) read the default branch's history and | |
| # refuse a shallow clone rather than false-green; the test matrix stays at | |
| # the default depth (25 — covers CI's other git operations) and runs the | |
| # zizmor Actions audit (its own `strategy.job-total < 2` skip runs it in the | |
| # non-matrix check job, skips it in the test matrix). | |
| check: | |
| name: 🔎 Check | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 (2026-05-15) | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - uses: ./.github/actions/fleet/setup-and-install | |
| with: | |
| # Authorizes a thin member's bundle download during install. Both | |
| # stay empty on a member with no payload App, which skips the mint. | |
| payload-token-client-id: ${{ vars.SOCKET_PAYLOAD_CLIENT_ID }} | |
| payload-token-private-key: ${{ secrets.SOCKET_PAYLOAD_APP_PRIVATE_KEY }} | |
| # Full history: the commit-history checks (AI-attribution, | |
| # release-boundary) read the default branch's history and refuse a | |
| # shallow clone rather than false-green. | |
| checkout-fetch-depth: '0' | |
| socket-api-token: ${{ secrets.SOCKET_API_TOKEN_FOR_CLI_AND_SFW }} | |
| - uses: ./.github/actions/fleet/run-script | |
| with: | |
| main-script: pnpm run check --all | |
| test: | |
| name: 🧪 Test | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 4 | |
| matrix: | |
| # JS/TS tests only need a fast Linux run; cross-platform behavior is | |
| # covered by unit tests, not the CI matrix. | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 (2026-05-15) | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - uses: ./.github/actions/fleet/setup-and-install | |
| with: | |
| # Authorizes a thin member's bundle download during install. Both | |
| # stay empty on a member with no payload App, which skips the mint. | |
| payload-token-client-id: ${{ vars.SOCKET_PAYLOAD_CLIENT_ID }} | |
| payload-token-private-key: ${{ secrets.SOCKET_PAYLOAD_APP_PRIVATE_KEY }} | |
| socket-api-token: ${{ secrets.SOCKET_API_TOKEN_FOR_CLI_AND_SFW }} | |
| - uses: ./.github/actions/fleet/run-script | |
| env: | |
| # Authenticate build-time GitHub API reads (release listings, | |
| # prebuilt-artifact downloads). Unauthenticated calls share the | |
| # hosted runner's IP-scoped rate limit and 403 under load. | |
| GH_TOKEN: ${{ github.token }} | |
| with: | |
| setup-script: pnpm run build | |
| main-script: pnpm test --all | |
| # </fleet-canonical> |