-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmergify.yaml
More file actions
70 lines (61 loc) · 1.32 KB
/
mergify.yaml
File metadata and controls
70 lines (61 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: 1
# PR review behaviour
pull_request:
auto_review: true
review_message: |
Thanks for contributing Semgrep rules!
Coderabbit will perform:
- YAML validation
- Semgrep ruleset sanity checks
- Coverage of rule metadata
- Suggestions for patterns and message quality
# When to trigger
triggers:
- opened
- reopened
- synchronize
# How deep the review is
suggestions:
enabled: true
limit: 50 # Reduce noise
auto_apply: false
# Paths to review: focus on semgrep rules
include_paths:
- semgrep/
- rules/
- .semgrep/
- semgrep-rules/
exclude_paths:
- tests/generated/
- vendor/
- node_modules/
# Code style for YAML / Semgrep rules files
rules:
yaml:
indentation: 2
line_width: 120
require_document_start: false
# Optional: enforce required metadata for Semgrep rules
checks:
semgrep_rules:
required_fields:
- id
- message
- severity
- patterns
enforce_schema: true
severity_values:
- INFO
- WARNING
- ERROR
# Optional: integrate with Semgrep CI output
ci:
semgrep:
enabled: true
sarif_report: semgrep.sarif # If your CI publishes SARIF
fail_on:
severity: ERROR
missing_metadata: true
notifications:
on_fail: true
on_success: false