Skip to content

Commit 071e4e0

Browse files
committed
Add in custom semgrep check
1 parent 88f6d4d commit 071e4e0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
rules:
2+
- id: pull-request-target-needs-exception
3+
languages:
4+
- yaml
5+
severity: ERROR
6+
message: pull_request_target is considered very risky and should only be used when striclty needed. Please prefer other triggers when possible.
7+
metadata:
8+
category: best-practice
9+
technology:
10+
- github-actions
11+
patterns:
12+
- pattern-either:
13+
- patterns:
14+
- pattern-inside: "{on: ...}"
15+
- pattern: pull_request_target

0 commit comments

Comments
 (0)