Skip to main content
If you’re using a private registry, connect it to Semgrep to provide the context necessary to: To connect a private registry to Semgrep:
2
Navigate to Settings > Integrations.
3
Click Add integration, then select Registry.
4
In the dialog that appears, provide the following information:
  1. The Name of your registry.
  2. The .
  3. The URL of your registry. It must start with https://. Enter the base URL of your registry, not the URL of a single package. The URL format depends on the package manager:
    • Maven: the repository URL. Maven repository URLs typically end with /maven2 or /repository, for example https://repo.example.com/maven2.
    • npm: the registry URL, for example https://npm.example.com.
    • PyPI: the simple index URL, which ends with /simple, for example https://pypi.example.com/simple.
  4. Optional, Maven only: the Repository type. Select whether the repository serves release artifacts, snapshot artifacts, or both.
  5. The Authentication method. If none is required, select None (public registry).
    • Username and password: provide the required Username and Password.
    • API token: provide the required token value. Semgrep doesn’t support token authentication for Maven repositories.
    • AWS CodeArtifact (IAM role): provide the ARN of an IAM role that Semgrep assumes. This option appears when you enter an AWS CodeArtifact Maven URL. It requires setup in your AWS account first, and Dynamic Dependency Resolution uses it. This option is in private beta. Contact Semgrep Support to enable it. See Connect an AWS CodeArtifact registry to Semgrep.
5
Optional: if your registry is only accessible from your private network, select Use network broker for registry access. This option requires a Semgrep Network Broker deployed within your network.When enabled, Semgrep routes registry traffic through the broker, allowing Semgrep to access registries that are not publicly accessible on the internet.
For the broker to reach your registry, its allowlist must include the registry URL. See Use Semgrep Network Broker for private registry access.
6
Click Connect to save your changes and proceed.