Skip to content

Commit

Permalink
adding config profile to Scan repository command
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Sep 22, 2024
1 parent 5d3becc commit 319f752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scanrepository/scanrepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ func (cfp *ScanRepositoryCmd) scanAndFixProject(repository *utils.Repository) er
vulnerabilitiesByPathMap := make(map[string]map[string]*utils.VulnerabilityDetails)
projectFullPathWorkingDirs := utils.GetFullPathWorkingDirs(cfp.scanDetails.Project.WorkingDirs, cfp.baseWd)
for _, fullPathWd := range projectFullPathWorkingDirs {
scanResults, err := cfp.scan(fullPathWd)
cfp.scanDetails.SetConfigProfile(repository.ConfigProfile)
scanResults, err := cfp.scan(fullPathWd) // TODO here is the point where we lost the config profile (kept in repository) and we proceed only with scanDetails (that can store configProfile)
if err != nil {
return err
}
Expand Down

0 comments on commit 319f752

Please sign in to comment.