Rule Portability
OpenGrep rules are fully compatible with the Semgrep rule format, meaning any existing Semgrep rules your team has written or sourced from public registries can be used in Asymptote without modification. This makes it easy to bring your organization’s existing rule library into the platform.Rule Format
Rules are written in YAML and require the following fields:| Field | Description |
|---|---|
id | Unique identifier for the rule |
pattern | The code pattern to match using OpenGrep syntax |
message | Description of the issue shown in scan results |
languages | List of languages to apply the rule to. Leave empty to apply to all supported languages. |
severity | One of ERROR, WARNING, or INFO |
How Rules Apply to Scans
Custom OpenGrep rules run as part of the Static Analysis scan type. When a scan is triggered (either on demand or on a schedule), Asymptote evaluates all enabled rules against your repository. Any matches are surfaced as vulnerability findings with the rule’s message and the affected code location. Rules can be enabled or disabled individually, so you can manage which checks are active without deleting rules.Managing Rules
From the Rules page in the dashboard you can:- Create new rules using the rule editor
- Search rules by name, description, or language
- Enable or disable individual rules
- Edit or delete existing rules

