> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.endorlabs.com/feedback

```json
{
  "path": "/scan/sast/manage-sast-rules/create-sast-rule/index",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Create a SAST rule

To create a SAST rule:

1. Select **Policies & Rules** > **SAST RULES** from the left sidebar.
2. Click **Create SAST Rule**.
3. Enter the SAST rule in the yaml format.

   <img src="https://mintcdn.com/endorlabs-b4795f4f/266r_aE9BWR2B51C/images/scan/sast/SAST_CreateRule.webp?fit=max&auto=format&n=266r_aE9BWR2B51C&q=85&s=64076110952682ef1ed778286f9be89b" alt="Create SAST rule" width="749" height="803" data-path="images/scan/sast/SAST_CreateRule.webp" />
4. Click **Save** to save the rule.
