Skip to content

Commit f9cab96

Browse files
chore: Add a field for changed dependencies in config
For agentic runs, we want to raise issues only for dependencies touched by the user in the changeset. This helps us achieve that.
1 parent a55ee03 commit f9cab96

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

types/sca.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,19 @@ type MarvinSCARemediationConfig struct {
8484
Repository string `toml:"repository"`
8585
}
8686

87-
//////////////////////////////////
87+
// ////////////////////////////////
8888
// Marvin -> Analyzer -> Marvin //
89-
//////////////////////////////////
89+
// ////////////////////////////////
90+
type DependencyChange struct {
91+
Package string `json:"package"`
92+
Version string `json:"version"`
93+
Target SCATarget `json:"sca_target"`
94+
}
9095

9196
type SCAConfig struct {
92-
SCATargets []SCATarget `json:"sca_targets"`
93-
Files []string `json:"files"`
97+
SCATargets []SCATarget `json:"sca_targets"`
98+
Files []string `json:"files"`
99+
DependenciesChanged []DependencyChange `json:"dependencies_changed"`
94100
}
95101

96102
type SCATargetResult struct {

0 commit comments

Comments
 (0)