> ## Documentation Index
> Fetch the complete documentation index at: https://www.mintlify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 修复被 Git 提供商 IP 允许列表阻止的 agent 运行

> 通过将部署路由到 Mintlify 静态 IP，解决因 GitHub 或 GitLab IP 允许列表导致的 agent 会话失败。

如果你的 GitHub 或 GitLab 组织启用了 IP 允许列表，[agent](/docs/zh/agent) 对你仓库的运行会失败并显示以下错误：

> Your git provider rejected this operation because the repository owner has an IP allow list enabled. Contact Mintlify support to have this deployment routed through our static IP (54.242.90.151), then add that IP to your allow list.

Agent 从 Mintlify 的云基础设施克隆你的仓库并推送提交。默认情况下，这些流量来自动态 IP 地址，因此即使 Mintlify GitHub App 有权访问该仓库，你的允许列表仍会拒绝这些请求。

<div id="fix-the-error">
  ## 修复错误
</div>

1. 发送邮件至 <a href="mailto:support@mintlify.com">[support@mintlify.com](mailto:support@mintlify.com)</a>，请求将你的部署路由到 Mintlify 静态 IP。请附上你的部署子域名。
2. Mintlify 支持团队确认更改后，在 GitHub 或 GitLab 组织设置的 IP 允许列表中添加 `54.242.90.151`。
3. 重新运行 agent。

只有你部署的 git 流量会通过静态 IP 路由。其他部署不受影响。


## Related topics

- [GitHub](/docs/zh/deploy/github.md)
- [简介](/docs/zh/api/introduction.md)
- [Osano](/docs/zh/integrations/privacy/osano.md)
