File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 43
43
with :
44
44
repository : ${{ steps.json.outputs.source_repo }}
45
45
ref : ${{ steps.json.outputs.sha }}
46
- - run : semgrep ci
46
+ - run : semgrep ci --config .github/workflows/semgrep_rules.yaml
47
47
env :
48
48
SEMGREP_APP_TOKEN : ${{ secrets.SEMGREP_APP_TOKEN2 }}
49
49
update-status :
Original file line number Diff line number Diff line change
1
+ rules :
2
+ - id : detect-os-system-calls
3
+ pattern : os.system(...)
4
+ message : " Unsafe use of os.system(). Consider using subprocess.run() instead."
5
+ languages : [python]
6
+ severity : WARNING
7
+
8
+ - id : detect-sql-injection
9
+ pattern : ' execute("SELECT * FROM " + $TABLE)'
10
+ message : " Potential SQL injection detected. Use parameterized queries."
11
+ languages : [python]
12
+ severity : ERROR
13
+
14
+ - id : detect-eval-usage
15
+ pattern : eval(...)
16
+ message : " Use of eval() detected. This can be dangerous if used with untrusted input."
17
+ languages : [python]
18
+ severity : ERROR
You can’t perform that action at this time.
0 commit comments