---
title: How can I use Vercel with GitHub IP restrictions?
description: This guide will describe how you can use Vercel even when you have an IP allowlist configured in GitHub.
url: /kb/guide/use-vercel-with-github-ip-restrictions
canonical_url: "https://vercel.com/kb/guide/use-vercel-with-github-ip-restrictions"
published: 2026-07-22
last_updated: 2026-07-22
authors: Tilly Gee
related:
  - /docs/cli
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---
<!-- docsgraph:related -->
## Related pages

> **For AI agents:** Follow these links to understand how this page connects to the rest of the Vercel ecosystem. For the full cross-link map (inbound, outbound, prerequisites, and semantic neighbors), see the .graph.md link below.

- [Deploying Bitbucket Projects with Vercel](https://vercel.com/docs/git/vercel-for-bitbucket?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — ​Vercel for Bitbucket automatically deploys your Bitbucket projects with Vercel, providing Preview Deployment URLs, and
- [Deploying GitLab Projects with Vercel](https://vercel.com/docs/git/vercel-for-gitlab?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — ​Vercel for GitLab automatically deploys your GitLab projects with Vercel, providing Preview Deployment URLs, and automa
- [Deploying GitHub Projects with Vercel](https://vercel.com/docs/git/vercel-for-github?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — Vercel for GitHub automatically deploys your GitHub projects with Vercel, providing Preview Deployment URLs, and automat
- [Restrict repository deployments to specific teams](https://vercel.com/changelog/restrict-repository-deployments-to-specific-teams?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related)
- [Restricting Git Connections to a single Vercel team](https://vercel.com/docs/protected-git-scopes?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — Information to stop developers from deploying their repositories to a personal Vercel account by using Protected Git Sco
- [Vercel for Platforms can now deploy from your users' GitHub repositories](https://vercel.com/changelog/vercel-for-platforms-can-now-deploy-from-your-users-github-repositories?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related)
- [Can I use GitHub Enterprise Server with Vercel?](https://vercel.com/kb/guide/can-i-use-github-enterprise-server-with-vercel?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — You can use GitHub Enterprise Server and GitHub Actions to deploy your application to Vercel.
- [How to fix “unable to find your GitHub repository” on Vercel](https://vercel.com/kb/guide/unable-to-find-github-repository?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — Learn how to check GitHub permissions to ensure your Vercel account has sufficient access to import your repository.
- [How do I prevent the Vercel for GitHub integration comments?](https://vercel.com/kb/guide/how-to-prevent-vercel-github-comments?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — Information on how to prevent the Vercel for GitHub integration from adding comments.
- [Can I use Vercel to deploy to a private cloud?](https://vercel.com/kb/guide/can-i-use-vercel-to-deploy-to-a-private-cloud?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — Learn about if it's possible to deploy to a private cloud with Vercel.
- [How can I use the Vercel CLI for custom workflows?](https://vercel.com/kb/guide/using-vercel-cli-for-custom-workflows?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=related) — You can use the Vercel CLI to deploy any application, including custom git providers and restricted source code.

Full cross-link map for this page: [/kb/guide/use-vercel-with-github-ip-restrictions.graph.md](/kb/guide/use-vercel-with-github-ip-restrictions.graph.md?from=related&source_path=%2Fkb%2Fguide%2Fuse-vercel-with-github-ip-restrictions&source_site=vercel-kb&relationship=graph)
<!-- /docsgraph:related -->


## What is the constraint?

When you have an [IP allowlist](https://docs.github.com/en/enterprise-cloud@latest/admin/configuring-settings/hardening-security-for-your-enterprise/restricting-network-traffic-to-your-enterprise-with-an-ip-allow-list) enabled on GitHub, you need to configure which IPs can access your resources in your GitHub account. Because the Vercel GitHub integration uses the API to access your git repos, it means that the restriction will apply to things such as project creation, repository linking and accessing your source code during the build step. By default, Vercel's infrastructure uses a dynamic range of IP addresses for outbound requests, which can make allowlisting a challenge.

## Can I still use Vercel whilst keeping IP restrictions enabled?

Yes! You can still use Vercel with this feature enabled by deploying as part of your GitHub actions or just using the [Vercel CLI](https://vercel.com/docs/cli) directly.

When using GitHub actions, you will need to deploy your project with `vercel build` and then `vercel deploy --prebuilt`. This allows you to build your project without exposing your source code to Vercel. This skips the build step on Vercel and uploads the previously generated `.vercel/output` folder to Vercel, meaning Vercel does not need to access the GitHub API, so you don’t need to allow any Vercel IPs.

[**Learn more about how to configure GitHub Actions and Vercel**](https://vercel.com/guides/how-can-i-use-github-actions-with-vercel) for custom CI/CD workflows.

## Enterprise Customers

If you have an Enterprise team on Vercel, please reach out to your Vercel representative directly, who can discuss custom options to set this up using the GitHub integration.