Commit 0033441
committed
Move S5527/S4830 + nosemgrep suppressions onto the lines Sonar/Codacy flag
S5527 attaches to the SSLContext(PROTOCOL_TLS_CLIENT) constructor,
not to the assignment that sets check_hostname=False. Extract the
two GUI client-context paths into module-level
_build_verifying_client_context / _build_insecure_client_context,
and put NOSONAR S4830 S5527 on the def line of the insecure builder
so the suppression sits on the line Sonar's flow analysis blames
(test_remote_desktop_tls.py gets the same treatment).
Codacy / Opengrep wants the suppression token on the same line as
the call; relocate the nosemgrep marker next to the existing
nosec B324 on the hashlib.sha1(...) line and use the rule path the
scanner actually emits
(python.lang.security.insecure-hash-algorithms... — no '.audit').1 parent 80fd9b5 commit 0033441
3 files changed
Lines changed: 30 additions & 15 deletions
File tree
- je_auto_control
- gui
- utils/remote_desktop
- test/unit_test/headless
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
112 | 136 | | |
113 | 137 | | |
114 | 138 | | |
| |||
713 | 737 | | |
714 | 738 | | |
715 | 739 | | |
716 | | - | |
717 | | - | |
718 | 740 | | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
| 741 | + | |
| 742 | + | |
727 | 743 | | |
728 | 744 | | |
729 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments