ReferenceIntegrationsVercel

Frequently asked questions

Answers to common questions about the Endform Vercel integration, including skipped checks, action errors, other CI providers and running locally.

Why are my Vercel checks skipped?

If a workflow runs npx endform@latest test without endformdev/actions/run-with-vercel-deployment ahead of it, or if no GitHub Actions workflow runs for the pull request commit, Endform skips the Vercel check. Confirm that:

  • Your workflow triggers on pull_request (Vercel creates previews for pull requests).
  • run-with-vercel-deployment runs in the same job, before npx endform@latest test.
  • project-name or project-id matches the Vercel project connected to your Endform organization.
  • The deployment comes from a Git commit that Endform can match to the GitHub Actions workflow run.

Why does the action fail with Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable?

The workflow can't request a GitHub OIDC token. Add id-token: write to the workflow's or job's permissions. See Authentication.

If the step instead fails with Authorization failed: OIDC token verification failed, Endform rejected the token. Re-run the job, and contact support if it keeps failing.

Why does the action fail with Conflict when fetching deployment status?

Endform found a problem it can't wait out. The rest of the message says which:

Message containsWhat to do
the Endform GitHub app is not installed on this repositoryInstall the Endform GitHub App on the repository, from the same Endform organization as the Vercel integration.
no Vercel installation is linked to this Endform organizationInstall the Endform Vercel integration with npx endform@latest connect vercel, from the organization the GitHub App belongs to.
Unable to access Vercel projectThe Vercel integration doesn't have access to this project, or the name or ID doesn't match. Give the integration access to the project in Vercel, using the link in the message, and check project-name or project-id.
failed to build or was canceledThe preview deployment for this commit has no URL to test. Fix the Vercel build and push again.
ran on commit ... but this job asked for the deployment of commit ...Endform tests the deployment of the commit the workflow run is for, and the action reads the commit from the GitHub event (the pull request's head commit on pull_request and pull_request_target events, GITHUB_SHA otherwise). Trigger the workflow on pull_request or push so the two agree.
already finished, so Endform won't test a deployment for itThe workflow run attempt had already finished. Re-run the workflow.

Why does the action time out waiting for the deployment?

While Vercel is still building, the action logs that it's waiting and keeps polling. The step fails with Timeout waiting for deployment after 600 seconds when no ready deployment for the commit shows up in time. Check that:

  • Vercel builds this commit. Vercel can skip a build, for example with an ignored build step in a monorepo.
  • The Vercel build succeeded.
  • project-name or project-id names the project that builds the commit.

If your builds take longer than 10 minutes, raise timeout-seconds.

Why do my tests get Vercel's login page?

The Deployment Protection bypass isn't reaching the request:

  • Requests from Playwright browser contexts and request fixtures get the bypass header automatically, unless deployment-protection-bypass is set to false.
  • Plain fetch calls outside Playwright need the token themselves. See Direct fetch calls.

Can I block merging when tests fail?

Yes. Mark the GitHub Actions job, or the Endform GitHub check, as a required status check in your GitHub branch protection rules. Endform's Vercel deployment checks are currently non-blocking on Vercel, so use the GitHub check for this.

Which code hosting platforms are supported?

GitHub. The Vercel check and run-with-vercel-deployment need GitHub Actions and the Endform GitHub App.

What if I use a CI provider other than GitHub Actions?

You can test Vercel previews from any CI provider, such as GitLab CI or CircleCI, by setting BASE_URL and ENDFORM_API_KEY yourself:

  1. Wait for or look up the Vercel preview URL in your pipeline, and set it as BASE_URL.
  2. Set ENDFORM_API_KEY.
  3. If previews are protected, send Vercel's protection bypass for automation secret as the x-vercel-protection-bypass header in use.extraHTTPHeaders in playwright.config.ts.
  4. Run npx endform@latest test.

Outside GitHub Actions, your pipeline finds the preview URL and adds the bypass header itself, and Endform doesn't report a Vercel deployment check. See Set up Endform in CI.

Can I still run Endform locally?

Yes. Configure playwright.config.ts to read process.env.BASE_URL and fall back to your local webServer when BASE_URL is unset, then run npx endform@latest test locally. See Test against a local server.

How do I open the Endform dashboard from Vercel?

Go to the Endform integration's settings page in Vercel and click Open in Endform in the top-right corner. See Vercel Marketplace accounts.

Last updated