Skip to content

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

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

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:.

This branch has not been deployed

No deployments
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