Semgrep Agentic Workflows is in beta. Beta features are subject to change with continued internal benchmarking and customer feedback.
Prerequisites
- Your organization must use Semgrep AppSec Platform with a paid subscription.
- You must be an organization Admin. During the beta, only Admins can start Agentic Workflows runs.
- Semgrep AppSec Platform must be connected to a supported source code manager and have code access to the repositories you want to analyze. See SCM permissions for the scopes Semgrep needs. You do not need to use Semgrep Managed Scans to run Agentic Workflows.
- Your organization must have enough AI credits to run the selected workflows.
Unsupported configurations
During the beta:- CI-based execution is not supported. Agentic Workflows runs as a Semgrep-hosted service.
- You must leave the default AI providers enabled. Agentic Workflows does not support bring your own key (BYOK) or minimal data retention (MDR). If you use these configurations, you cannot run Agentic Workflows.
Run Agentic Workflows
You can start Agentic Workflows from the Projects page in Semgrep AppSec Platform. You can also start a single Agentic Workflows run from a project’s Details page. To start a run:- In Semgrep AppSec Platform, go to Projects.
- Select one or more projects to analyze.
- Click Run a new scan > Run workflows.
- Choose which workflows to run:
- Run Semgrep’s default to run the recommended workflow pack, which combines all nine available workflows.
- Select individual workflows to run one or more workflows from the list of nine available workflows. Review the workflow descriptions to understand their expected coverage.
- The workflow runs on the primary project branch by default. Uncheck the box to specify a different branch.
- Click Run workflows.
Review Agentic Workflows issues
Agentic Workflows produces issues: deduplicated results you review in Semgrep AppSec Platform. Issues are separate from Semgrep Code, Semgrep Supply Chain, and Secrets findings. Actions taken on an Agentic Workflows issue do not change the status of a related finding from another Semgrep product. To review issues:- In Semgrep AppSec Platform, go to Workflows.
- Optionally, filter the list by the criteria you choose, or select Group and sort to customize how issues are displayed.
- Select an issue to open its Details page and review the evidence, affected repository and code, workflow run, and issue status.
Notifications and integrations
Configure Agentic Workflows notifications with Unified policies. Use a remediation policy that runs when a workflow job finishes. To configure a notification:- In Semgrep AppSec Platform, go to Rules & Policies > Policies.
- Open the Remediation tab, then click Create policy.
- Select the event A workflow job finishes.
- Choose the scope, conditions, and actions for the policy, then click Save.
Expand coverage gradually
Because Agentic Workflow runs consume AI credits, Semgrep recommends starting with a small set of high-value repositories and avoiding runs across all your projects until you understand the results and usage for your environment. Semgrep recommends the following rollout process:- Select a few important repositories that represent your primary languages, frameworks, and application architectures.
- Run the Semgrep-recommended workflows. Optionally, skip workflows that you know aren’t relevant to the risks in those repositories.
- Review the resulting issues for accuracy and usefulness.
- Share feedback with Semgrep, including missed vulnerabilities, unexpected results, and unclear issue details.
- Expand runs to more repositories after you understand expected results and credit consumption.