From 4f7b8b313e864210b491ee479b57e009145fd633 Mon Sep 17 00:00:00 2001 From: Na Yue Date: Fri, 9 Aug 2024 16:42:30 -0700 Subject: [PATCH] Create test_pr.py --- .github/workflows/test_pr.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .github/workflows/test_pr.py diff --git a/.github/workflows/test_pr.py b/.github/workflows/test_pr.py new file mode 100644 index 0000000..afbcad9 --- /dev/null +++ b/.github/workflows/test_pr.py @@ -0,0 +1,4 @@ +def hardcoded_ip_address_noncompliant(): + sock = socket(AF_INET, SOCK_STREAM) + # Noncompliant: IP address is hardcoded. + sock.bind(('193.168.14.31', 80))