Hello Vercel team,
I'm conducting authorized security research in a personal Vercel testing environment, and I've encountered an issue with GitHub Actions authentication to Vercel Container Registry (VCR).
Environment
- GitHub repository:
sak-spec-png/vercel-bounty-lab(private test repository) - Vercel plan: Hobby
- Authentication method:
vercel/vcr-action/login@v1 - Identity provider: GitHub Actions OIDC
- Vercel OIDC policy: Configured for the repository and workflow, with read/write access to VCR
- Vercel team ID: Configured through a GitHub repository variable
Issue observed
GitHub Actions successfully obtains an OIDC token. The token contains the expected issuer and audience:
- Issuer:
https://token.actions.githubusercontent.com - Audience:
https://github.com/sak-spec-png - Repository:
sak-spec-png/vercel-bounty-lab - Branch:
refs/heads/main
However, the subject claim uses GitHub's newer immutable format:
repo:sak-spec-png@361567701/vercel-bounty-lab@1473708095:ref:refs/heads/main
When the Vercel Container Registry login action attempts to exchange this token, the request fails with:
HTTP 400: {"error":"invalid_request","error_description":"Not authorized."}
Investigation performed
I have:
- Verified that GitHub successfully issues the OIDC token.
- Inspected the token claims without exposing the token itself.
- Confirmed the configured audience and Vercel team ID.
- Reviewed the Vercel OIDC policy configuration.
- Inspected the official
vercel/vcr-actionsource code, includingsrc/auth.tsandsrc/lib.ts. - Confirmed that the action successfully reaches Vercel's
/login/oauth/tokenexchange endpoint. - Confirmed that GitHub immutable subject claims are enabled for this repository.
The failure appears to occur during Vercel's authorization of the token exchange.
Questions
Could someone familiar with Vercel's OIDC implementation or Container Registry authentication clarify:
- Does Vercel currently support GitHub's immutable OIDC subject format, including owner and repository IDs?
- Are there additional policy conditions required to match this subject format?
- Is this a known compatibility issue with GitHub Actions OIDC?
- Is there a recommended way to diagnose the
Not authorizedresponse safely?
I have not identified or claimed a security vulnerability. At this stage, I'm seeking technical clarification and guidance on whether this is a configuration issue or a compatibility limitation.
Thank you for your time. Any guidance from the Vercel infrastructure or authentication team would be appreciated.