Remove duplicate findings
Semgrep scans are performed on both mainline (trunk) and non-mainline branches. The scope of the scan can differ depending on if Semgrep is called on a mainline or non-mainline branch.
- Full scan
- Scans the repository in its entirety. It is recommended to perform full scans on mainline branches, such as
masterormain. Full scans are typically performed on a scheduled basis or on merge to a default branch. - Diff-aware scan
- Diff-aware scans are performed on non-mainline branches, such as in pull requests and merge requests. Diff-aware scans traverse the repository's files based on the commit where the branch diverged from the mainline branch.