Prerequisites
To use Supply Chain Autofix, you must meet the following requirements:- Enable Semgrep Supply Chain scans and run a full scan on a connected repository.
- The finding has a fixed version to upgrade to.
- The project uses a supported ecosystem: JavaScript or Python.
- Semgrep needs read and write access to the repository so it can push a branch and open a PR or MR. See Grant read and write access.
- If the dependency is in a private registry, connect the registry to Semgrep.
Open an Autofix PR or MR
1
In Semgrep AppSec Platform, go to Supply Chain.
2
Select a finding.
3
Click Fix > Open Autofix PR.
- If Autofix is unavailable, Open Autofix PR does not appear in the Fix menu, or Semgrep shows a modal with setup instructions instead of opening the PR.
What the PR or MR contains
The PR or MR always includes:- Changes to the manifest or lockfile needed to upgrade the dependency.
- The dependency version Semgrep selected.
- A summary of the finding’s severity and reachability.
- Details about the vulnerability and links to its CVE references.
- Relevant dependency release notes, changelogs, and commits.