Triage and remediate Supply Chain findings
At least one repository that scans for dependencies through Semgrep Supply Chain. See Scan third-party dependencies.
Once Semgrep Supply Chain successfully scans your repository and you've viewed your results, you can assess, triage, and remediate the findings presented in Semgrep AppSec Platform using the Supply Chain page. Semgrep provides the following methods to help you evaluate your findings:
| Assessment action | Method |
|---|---|
| Filter findings. | Click any filter on the Supply Chain page. |
| View specific CVE entries in cve.org. | Click the finding's CVE badge. |
| View specific pattern matches in your codebase. | View the Supply Chain finding's Details page. |
| View the dependency path for a transitive dependency. | View the Supply Chain finding's Details page. |
| View safe versions to upgrade your dependencies. | View the Supply Chain finding's Details page. |
Once you've assessed the findings, the following actions are available to you.
Remediate true positives
Remediate (or resolve) true positives in Semgrep Supply Chain by:
- Updating the dependency to a safe version that does not contain the vulnerability.
- Removing the dependency and refactoring all usages in the codebase.
Review provisionally ignored findings
Provisionally ignored findings are those identified by Semgrep as unreachable. These findings block pull requests and merge requests if the corresponding rule is included in a blocking policy.
You can change the status of provisionally ignored findings to indicate the next steps in the triage process. For instance, you can set the status to Reviewing if you decide to manually review the finding.
Remove the dependency and refactor the code
Removing dependencies and refactoring code are other methods to remediate vulnerabilities. Upon merging any dependency removals, Semgrep Supply Chain scans the pull request or merge request, detects changes to your manifest file or lockfile, and updates the status to Fixed.
Upgrade guidance and Autofix (beta)
If the remediation for a finding is to upgrade the package, Upgrade guidance uses program analysis and AI to analyze the results of your Semgrep scans to see if you can safely and reliably update a vulnerable package or dependency to a fixed version. From there, you can choose to:
- Have Semgrep open a pull request or merge request that updates the version used by your repository and guide the developer on any breaking changes in the PR description
- Create a Jira ticket
- Set the finding's triage status as To fix
Semgrep's dependency upgrade guidance can determine if the package upgrade needed to remediate the finding causes breaking changes. Semgrep can then create a PR to upgrade the package, offering a one-click solution to you.
Supported languages and package managers
- JavaScript projects
- Python codebases with the following package managers:
pippip-toolspipenvpoetryuv