Skip to content

ci: pin actions to SHAs, add timeouts and PR concurrency (Pillars 1, 2, 4, 5) - #210

Closed
nullStack65 wants to merge 1 commit into
mainfrom
ci/pillar1245-t3code-ci-hardening
Closed

nullStack65 wants to merge 1 commit into
mainfrom
ci/pillar1245-t3code-ci-hardening

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

Summary

Hardens GitHub Actions workflows across Pillars 1, 2, 4, and 5 (avoiding ARC runner migration changes in #201):

  • Pillar 1 (PR Concurrency): Added top-level concurrency: cancel-in-progress: true to cursor-hygiene-webhook.yml, mobile-eas-preview.yml (promoted from job-level), pr-size.yml, and pr-vouch.yml. Preserved intentional job-level concurrency in desktop-macos-preview-publish.yml (build cancels in-progress; publish and cleanup serialize without cancelling mid-upload/delete).
  • Pillar 2 (Job Timeouts): Added tight timeout-minutes: to all 11 jobs across 8 workflows that were missing them (cursor-hygiene-webhook.yml, issue-labels.yml, mobile-eas-preview.yml, mobile-eas-production.yml, mobile-fingerprint-check.yml, pr-size.yml, pr-vouch.yml, thread-transfer-report.yml).
  • Pillar 4 (Caching): Added Cargo registry and native/*/target/ caching via actions/cache to the rust job in ci.yml to eliminate cold-cache Rust rebuilds on every PR.
  • Pillar 5 (Supply Chain & Least-Privilege Security):
    • Pinned 100% of unpinned third-party actions (17 unique actions, 91 references across 14 workflows) to exact 40-char commit SHAs with # vX comments.
    • Tightened pr-vouch.yml top-level permissions: to contents: read and scoped issues: write / pull-requests: write to the label job only.
    • Added explicit top-level permissions: { contents: read } to mobile-eas-preview.yml, mobile-eas-production.yml, and mobile-fingerprint-check.yml.
    • Audited all 3 pull_request_target workflows (desktop-macos-preview-publish.yml, pr-size.yml, pr-vouch.yml): none check out or execute untrusted PR code.

Validation

  • Parsed all 20 workflow YAML files and 1 composite action cleanly with PyYAML.
  • Verified 0 unpinned third-party actions, 0 jobs missing timeout-minutes:, and 0 workflows missing top-level permissions:.

@nullStack65

Copy link
Copy Markdown
Owner Author

Repair worker triage for this CI-pinning pull request (head 8928950). No push was made. None of the failing checks comes from this PR's changes.

Why the PR isn't the cause: this PR only edits .github/workflows/*. The pinned SHAs are the same commits the floating tags point to right now: actions/checkout@v6 is d23441a4… and voidzero-dev/setup-vp@v1 is 250f29ce…. So the jobs run the same action code as before. The base commit (main at a777dad, the session spend-guard merge) has no CI run of its own, and the failures below are in code already on main:

  1. Check: knip reports 5 unused exports already on main: SPEND_GUARD_RELEASED_KIND (apps/server/src/orchestration/SessionSpendGuard.ts:19), expandHomePathFromWith (apps/server/src/pathExpansion.ts:43), layerDisabled (apps/server/src/sourceControl/SourceControlDiscovery.ts:146), and assertClaimedIsolationProfile and isolationRootFromEnvironment (packages/shared/src/isolationRoot.ts:169 and :203).
  2. Release Smoke: vp install --lockfile-only fails with ERR_PNPM_UNUSED_PATCH because the @react-native-menu/menu@2.0.0 patch is never applied.
  3. Test: a web composer-attachments test fails with a Rolldown parse failure (IncomingShareStorageError).
  4. Test Server 2: src/server.test.ts "reports thread HTTP and WebSocket transfer budgets" fails, and the codex and claudeAgent "resumes imported … history only after the first prompt" tests time out at 120s.
  5. Test Server 3: "converts legacy object-shape options into array-shape on projections and events" fails a deep-equality assertion.

Recommendation: fix these in a separate pull request against main, then re-run CI here. This PR should then go green without changes. I didn't put the fixes in this PR so it stays a workflow-only change.

@nullStack65
nullStack65 marked this pull request as draft November 26, 2026 17:01
@nullStack65

Copy link
Copy Markdown
Owner Author

Closed per founder-approved batch cleanup of stale drafts and superseded main PRs (release/native-0.1.10 is the active fleet release line).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant