---
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.

- [Bitbucket](https://vercel.com/docs/git/vercel-for-bitbucket?from=related) — ​Vercel for Bitbucket automatically deploys your Bitbucket projects with Vercel, providing Preview Deployment URLs, and
- [GitLab](https://vercel.com/docs/git/vercel-for-gitlab?from=related) — ​Vercel for GitLab automatically deploys your GitLab projects with Vercel, providing Preview Deployment URLs, and automa
- [GitHub](https://vercel.com/docs/git/vercel-for-github?from=related) — Vercel for GitHub automatically deploys your GitHub projects with Vercel, providing Preview Deployment URLs, and automat
- [Restricting Git Connections to a single Vercel team](https://vercel.com/docs/protected-git-scopes?from=related) — Information to stop developers from deploying their repositories to a personal Vercel account by using Protected Git Sco
- [Git Integrations](https://vercel.com/docs/git?from=related) — Vercel allows for automatic deployments on every branch push and merges onto the production branch of your GitHub, GitLa
- [Can I use GitHub Enterprise Server with Vercel?](https://vercel.com/kb/guide/can-i-use-github-enterprise-server-with-vercel?from=related) — You can use GitHub Enterprise Server and GitHub Actions to deploy your application to Vercel.
- [Can I get a fixed IP address for my Vercel deployments?](https://vercel.com/kb/guide/can-i-get-a-fixed-ip-address?from=related) — You can allowlist IP addresses with Vercel Secure Compute and Static IPs
- [How to fix “unable to find your GitHub repository” on Vercel](https://vercel.com/kb/guide/unable-to-find-github-repository?from=related) — Learn how to check GitHub permissions to ensure your Vercel account has sufficient access to import your repository.
- [How can I allowlist IP addresses for a deployment?](https://vercel.com/kb/guide/how-to-allowlist-deployment-ip-address?from=related) — You can securely connect a deployment to external services by using a stable set of IP addresses.
- [How do I prevent the Vercel for GitHub integration comments?](https://vercel.com/kb/guide/how-to-prevent-vercel-github-comments?from=related) — Information on how to prevent the Vercel for GitHub integration from adding comments.

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)
<!-- /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.