From 7b95d94926a70707d4d6074d6e1116d33afc2b13 Mon Sep 17 00:00:00 2001 From: Srijan Saurav Date: Thu, 27 Nov 2025 14:10:56 +0530 Subject: [PATCH] chore: Add a field fo dependencies and targets modified in the config For agentic runs, we want to raise issues only for dependencies touched by the user in the changeset. This helps us achieve that. --- types/sca.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/types/sca.go b/types/sca.go index 9519103..5c04630 100644 --- a/types/sca.go +++ b/types/sca.go @@ -84,13 +84,20 @@ type MarvinSCARemediationConfig struct { Repository string `toml:"repository"` } -////////////////////////////////// +// //////////////////////////////// // Marvin -> Analyzer -> Marvin // -////////////////////////////////// +// //////////////////////////////// +type DependencyChange struct { + Package string `json:"package"` + Version string `json:"version"` + Target SCATarget `json:"sca_target"` +} type SCAConfig struct { - SCATargets []SCATarget `json:"sca_targets"` - Files []string `json:"files"` + SCATargets []SCATarget `json:"sca_targets"` + Files []string `json:"files"` + DependenciesModified []DependencyChange `json:"dependencies_modified"` + TargetsModified []SCATarget `json:"targets_modified"` } type SCATargetResult struct {