File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -3094,7 +3094,7 @@ semgrep: ## 🔍 Security patterns & anti-patterns
3094
3094
@test -d " $( VENV_DIR) " || $(MAKE ) venv
3095
3095
@/bin/bash -c " source $( VENV_DIR) /bin/activate && \
3096
3096
python3 -m pip install -q semgrep && \
3097
- $(VENV_DIR ) /bin/semgrep --config=auto mcpgateway tests || true"
3097
+ $(VENV_DIR ) /bin/semgrep --config=auto mcpgateway tests --exclude-rule python.lang.compatibility.python37.python37-compatibility-importlib2 || true"
3098
3098
3099
3099
dodgy : # # 🔐 Suspicious code patterns
3100
3100
@echo " 🔐 dodgy - scanning for hardcoded secrets..."
Original file line number Diff line number Diff line change
1
+ rules :
2
+ - id : disable-importlib-resources-compat
3
+ languages : [python]
4
+ message : " This rule is intentionally disabled."
5
+ severity : INFO
6
+ pattern : import importlib.resources
7
+ metadata :
8
+ python_min_version : " 3.12"
You can’t perform that action at this time.
0 commit comments