Skip echo-based policy when deploy-on-self-hosted-vm installs the agent
When the agent is installed via deploy-on-self-hosted-vm, the config already contains egress_policy and allowed_endpoints. Skip the sendAllowedEndpoints echo to avoid a second applyEgressPolicy that may interfere with the config-based block policy.
This commit is contained in:
Vendored
+1
-1
@@ -85919,7 +85919,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
||||
lib_core.info("Agent already installed on self-hosted runner, skipping installation.");
|
||||
}
|
||||
}
|
||||
if (confg.egress_policy === "block") {
|
||||
if (confg.egress_policy === "block" && !confg.deploy_on_self_hosted_vm) {
|
||||
sendAllowedEndpoints(confg.allowed_endpoints);
|
||||
yield setup_sleep(5000);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -314,7 +314,7 @@ interface MonitorResponse {
|
||||
}
|
||||
}
|
||||
|
||||
if (confg.egress_policy === "block") {
|
||||
if (confg.egress_policy === "block" && !confg.deploy_on_self_hosted_vm) {
|
||||
sendAllowedEndpoints(confg.allowed_endpoints);
|
||||
await sleep(5000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user