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

# Semgrep Instructions

> Instructions on how to onboard a Semgrep Integration

## Onboarding

Follow the steps below to onboard a user to our Semgrep Integration.

<Steps>
  <Step title="Create API token">
    Go to "Settings" -> "Tokens" -> "API Tokens" and click "Create new token"

    <img src="https://mintcdn.com/leen/v5iddL0dhlngJwjt/images/semgrep/semgrep-settings-create-token.png?fit=max&auto=format&n=v5iddL0dhlngJwjt&q=85&s=0ac8cf2a23487b20378caaeab032b2d3" alt="semgrep-settings-create-token" width="2492" height="2024" data-path="images/semgrep/semgrep-settings-create-token.png" />
  </Step>

  <Step title="Enable token scopes in popup">
    In the popup window enable following scopes

    * Agent CI
    * Web API

    <Warning>Record your API token secret somewhere safe. After the credential window is closed, the secret is no longer visible.</Warning>
    Click save and close the popup box

    <img src="https://mintcdn.com/leen/v5iddL0dhlngJwjt/images/semgrep/semgrep-create-token-popup.png?fit=max&auto=format&n=v5iddL0dhlngJwjt&q=85&s=2d1acd983b574378501393a9447d805b" alt="semgrep-create-token-popup" width="1294" height="964" data-path="images/semgrep/semgrep-create-token-popup.png" />
  </Step>

  <Step title="Enter Credentials">
    After creating the Web API token, Copy this into the Semgrep AppSec connector in its respective field.
  </Step>
</Steps>
