Skip to content

Diff-aware scanning #73

Open
Open

Description

@Pabloo-ss

Question

Is there any way to scan just the modified files in a PR in order to find out if any new findings will be introduced in master branch after merging?
Something like this (Semgrep):
Diff-aware scanning
Semgrep AppSec Platform can scan only changes in files when running on a pull or merge request (PR or MR). This keeps the scan fast and reduces finding duplication.

Activity

  1. added
    question
    on Feb 13, 2025
  2. MF-Joel commented on Feb 13, 2025

    @MF-Joel

    This isn’t something that is offered as a native feature of Fortify SCA. Although you could potentially script a solution to identify the modified files and then configure Fortify to scan only those files, the results would not fully replicate a purpose-built diff scan approach as there would be a loss of results identified through dataflow analysis. Additionally, this could only work for languages that don't require a full project translation such as Python, JavaScript, TypeScript, etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions