- Open Autofix pull requests or merge requests.
- Generate Upgrade Guidance for Supply Chain findings.
- Run a Managed Scan for a project using Maven registries.
- Block malicious packages installed from the registry with the Semgrep Malware Firewall (private beta).
1
Sign in to Semgrep AppSec Platform.
2
Navigate to Settings > Integrations.
3
Click Add integration, then select Registry.
4
In the dialog that appears, provide the following information:
- The Name of your registry.
- The .
- 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
/maven2or/repository, for examplehttps://repo.example.com/maven2. - npm: the registry URL, for example
https://npm.example.com. - PyPI: the simple index URL, which ends with
/simple, for examplehttps://pypi.example.com/simple.
- Maven: the repository URL. Maven repository URLs typically end with
- Optional, Maven only: the Repository type. Select whether the repository serves release artifacts, snapshot artifacts, or both.
- 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.