Skip to content

Vercel CLI swaps long-lived tokens for short-lived OIDC ones

Workload Identity Federation lets a trusted GitHub Actions job trade its own OIDC token for a temporary Vercel CLI credential, scoped by team policy instead of a stored personal access token.

Source: Vercel

Vercel shipped OIDC token exchange for its CLI today. A trusted workload, a GitHub Actions job, say, can now trade its own OIDC token for a short-lived Vercel CLI access token instead of relying on a personal access token stored as a long-lived secret. Vercel calls this Workload Identity Federation, or WIF.

What the token can do is set by your team’s OIDC policy, not by whichever team member happened to configure the workflow. You set policies up under Settings → Build and Deployment → OIDC Policies, or through the new vercel oidc-policies command, and Vercel’s own authenticate-cli-action handles the exchange on the GitHub Actions side.

Why it matters: a long-lived PAT sitting in a CI secret store is a standing liability, it works for anyone who gets hold of it, for as long as nobody rotates it. A token minted per run, scoped by policy and expiring on its own, shrinks what a leaked CI secret can actually do.

The caveat: this isn’t a full replacement yet. Vercel says some CLI commands still require a user token, so most teams will be running PATs and OIDC side by side for a while.

Share

Related reading

More from The Wire

All briefs