Skip to content

Commit f25ec11

Browse files
committed
Update semgrep rules
Signed-off-by: Mihai Criveti <[email protected]>
1 parent 9ad35d8 commit f25ec11

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3094,7 +3094,7 @@ semgrep: ## 🔍 Security patterns & anti-patterns
30943094
@test -d "$(VENV_DIR)" || $(MAKE) venv
30953095
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
30963096
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"
30983098

30993099
dodgy: ## 🔐 Suspicious code patterns
31003100
@echo "🔐 dodgy - scanning for hardcoded secrets..."

semgrep.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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"

0 commit comments

Comments
 (0)