policy
auth_error
ai_generated
true
错误:自托管运行器的IP地址不被组织的网络策略允许。
Error: The self-hosted runner's IP address is not allowed by the organization's network policy.
ID: policy/github-actions-self-hosted-runner-ip-restricted
92%修复率
87%置信度
1证据数
2024-06-01首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| GitHub Actions 2024-06-01 | active | — | — | — |
| actions/runner 2.315.0 | active | — | — | — |
根因分析
组织网络策略限制自托管运行器的出站流量到特定IP范围,而运行器的IP未被列入白名单。
English
Organization network policy restricts outbound traffic from self-hosted runners to specific IP ranges, and the runner's IP is not whitelisted.
官方文档
https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners解决方案
-
通过GitHub设置 > 组织 > 安全 > 网络策略,将自托管运行器的公共IP添加到组织的允许IP列表中。
-
改用GitHub托管的运行器,这些运行器具有动态IP,已大多数策略列入白名单。
无效尝试
常见但无效的做法:
-
Disable the organization's network policy entirely
90% 失败
Network policies are enforced by security teams; disabling them requires approval and may violate compliance.
-
Use a different self-hosted runner with the same IP
100% 失败
The IP is the same; the policy blocks the IP range, not the runner itself.