Skip to content

refactor(backend-vercel): read a workflow's principal by identity alone, as Vercel's API sends it - #781

Merged
julianbenegas merged 1 commit into
mainfrom
jb/api-principal-identity
Nov 20, 2026
Merged

julianbenegas merged 1 commit into
mainfrom
jb/api-principal-identity

Conversation

@julianbenegas

Copy link
Copy Markdown
Member

Vercel's API now sends a workflow's principal by who it is alone: a GitHub Actions run as its repository (repositoryId, repository), another issuer's caller as its issuer and sub. A token's other claims (a run's ref, workflow, and event, or an issuer's claims, which can name whoever started the job) stay with the request that carried them, for grant matching, and are no longer stored with what a workflow writes.

  • Types: ApiPrincipal drops workflowRef, ref, and event from github and claims from oidc. Nothing read them: a workflow shows by its repository or its sub, as before.
  • Fake Vercel API: an oidc actor's principal is its issuer and sub too, and its grants match the sub it carries.
  • Users: no change; no changeset.

Validation

  • pnpm check: build, typecheck, and every test pass against the updated fake.

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
vboard-preview-publisher Ready Ready Preview Nov 20, 2026 8:22pm UTC

@julianbenegas
julianbenegas marked this pull request as ready for review November 20, 2026 20:22
@julianbenegas
julianbenegas merged commit 4ecffb4 into main Nov 20, 2026
8 checks passed
@julianbenegas
julianbenegas deleted the jb/api-principal-identity branch November 20, 2026 20:23
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