Skip to content

V3 - Fast SAST mode scanning changed files only#1297

Open
attiasas wants to merge 2 commits intojfrog:v3_erfrom
attiasas:v3_sast_diff_mode
Open

V3 - Fast SAST mode scanning changed files only#1297
attiasas wants to merge 2 commits intojfrog:v3_erfrom
attiasas:v3_sast_diff_mode

Conversation

@attiasas
Copy link
Copy Markdown
Contributor

@attiasas attiasas commented May 4, 2026

feat(sast): fast SAST mode — scan changed PR files only

Depends on:

Summary

This change wires PR modified files into the XSC Git info context so SAST can run in a fast diff mode that scopes analysis to files changed on the pull request. Dependencies are temporarily pinned via replace directives to fork builds of jfrog-cli-security and jfrog-client-go that expose the new behavior.

Changes

  • utils/scandetails.go: In createGitInfoContext, after resolving target branch info, call client.GetModifiedFiles for the PR’s source vs target branch and set gitInfo.ChangedFiles; log a warning if listing modified files fails. Rename local XscGitInfoContext to xscCtx in SetXscPRGitInfoContext.

@attiasas attiasas requested a review from a team May 4, 2026 08:15
@attiasas attiasas added safe to test Approve running integration tests on a pull request improvement Automatically generated release notes labels May 4, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label May 4, 2026
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label May 5, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants