From 1080de4f1d437d7314455f91cfd674220fb866d8 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:28:25 -0500 Subject: [PATCH] chore: restrict internet access when running docker container in integration test (#3384) A verification step in go/offline-gen-design --- hermetic_build/library_generation/tests/integration_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hermetic_build/library_generation/tests/integration_tests.py b/hermetic_build/library_generation/tests/integration_tests.py index d9f83085da..f738a92093 100644 --- a/hermetic_build/library_generation/tests/integration_tests.py +++ b/hermetic_build/library_generation/tests/integration_tests.py @@ -303,6 +303,8 @@ def __run_entry_point_in_docker_container( f"{user_id}:{group_id}", "--rm", "--quiet", + "--network", + "none", "-v", f"{repo_location}:/workspace/repo", "-v",