Skip to content

feat: support managed GitHub credentials - #339

Draft
scubbo wants to merge 2 commits into
mainfrom
scubbo/factory-managed-github-credentials-sdk
Draft

scubbo wants to merge 2 commits into
mainfrom
scubbo/factory-managed-github-credentials-sdk

Conversation

@scubbo

@scubbo scubbo commented Sep 18, 2026

Copy link
Copy Markdown

Summary

  • type and forward managed Git source credentials, commitAs, and scoped GitHub API requests from Sandbox.create
  • expose the supported GitHub API action types
  • keep managed credential authority out of Sandbox.fork
  • add the explicit read-only managed Git source form

Test plan

  • pnpm --filter @vercel/sandbox build
  • pnpm --filter @vercel/sandbox exec vitest run src/sandbox.test.ts src/api-client/api-client.test.ts src/package-exports.test.ts
  • pnpm --filter @vercel/sandbox typecheck

Managed credential stack

This draft is PR 2 of 9 for Vercel-managed Agent Factory GitHub credentials.

Landing order:

  1. Project-OIDC managed Git authorization
    2. Sandbox SDK managed credential fields
  2. Idempotent Bound creation
  3. Project enrollment readiness
  4. Exact-head and create-only signed-push fencing
  5. Factory configuration and resumable setup
  6. Fresh trusted managed Git transport
  7. Signed-head verification and brokered PR publication
  8. True read-only managed Git follow-up (optional least-privilege follow-up)

The API and SDK drafts branch independently from their repositories' main branches. The Agent Factory drafts are stacked in landing order: #481 → #482 → #489. vercel/api#92320 is already merged and is not modified by this stack.

@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Your Vercel team Curated Tests - Permanent E2E is not permitted to deploy from this git repository. Contact an administrator to add github organization vercel as a Protected Git Scope in Curated Tests - Permanent E2E on Vercel. Once added, commit again to see your changes.

Learn more: https://vercel.com/docs/security/protected-git-scopes

@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sandbox Ready Ready Preview, v0 Sep 18, 2026 7:16am UTC
sandbox-cli Ready Ready Preview, v0 Sep 18, 2026 7:16am UTC

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