Skip to content

Harden CI, workflow refs, and bootstrap supply-chain paths#616

Open
davisbuilds wants to merge 4 commits intoamantus-ai:mainfrom
davisbuilds:upstream-supply-chain-hardening
Open

Harden CI, workflow refs, and bootstrap supply-chain paths#616
davisbuilds wants to merge 4 commits intoamantus-ai:mainfrom
davisbuilds:upstream-supply-chain-hardening

Conversation

@davisbuilds
Copy link
Copy Markdown

Summary

  • replace fresh-resolution and mutable bootstrap paths in CI with locked pnpm and pinned tool versions
  • pin GitHub Actions to immutable SHAs and add explicit top-level permission floors across workflows
  • harden Docker and helper bootstrap paths by removing latest and curl | sh style behavior where possible

What changed

  • switch the nested web/node-pty source-build jobs from npm install to locked pnpm install --frozen-lockfile --ignore-scripts
  • pin Zig to 0.15.2, Bun to 1.3.11, and add packageManager metadata to web/node-pty
  • pin anthropics/claude-code-action, google-github-actions/run-gemini-cli, and the active actions/* workflow refs to commit SHAs
  • add explicit top-level permissions: blocks across workflow files and narrow a few write scopes
  • replace npm@latest / pnpm@latest, curl | bash, and other mutable bootstrap fallbacks in Dockerfiles and helper scripts with pinned or fail-closed behavior

Verification

  • workflow YAML parses cleanly
  • no mutable @main, @beta, @release/*, or @vN refs remain under .github/workflows
  • no workflow file is missing a top-level permissions: block

Notes

  • macos-latest in the mac workflow was left unchanged intentionally because the workflow already pins Xcode explicitly, and changing hosted macOS images is a separate compatibility decision.
  • This branch is cut cleanly from upstream main and excludes fork-local guidance doc changes.

davisbuilds and others added 4 commits April 3, 2026 01:13
Update across 15 workflow files:
- checkout v4→v6, setup-node v4→v6, pnpm/action-setup v4→v5
- cache v4→v5, upload-artifact v4→v6, download-artifact v4→v8
- github-script v7→v8, dorny/paths-filter v3→v4
- peter-evans/find-comment v3→v4, create-or-update-comment v4→v5
- Bump node-version 20→24 in npm-test.yml and playwright.yml

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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