Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Zavhorodnii committed May 31, 2024
1 parent d47043d commit fe0606f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/security/risks/builtin/missing_cloud_hardening_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ func addAccordingToBaseTag(techAsset *types.TechnicalAsset, tags []string,

func findMostSensitiveTechnicalAsset(input *types.Model, techAssets map[string]bool) *types.TechnicalAsset {
var mostRelevantAsset *types.TechnicalAsset
// as in Go ranging over map is random order, range over them in sorted (hence reproducible) way:
keys := make([]string, 0, len(techAssets))
for k := range techAssets {
keys = append(keys, k)
Expand Down

0 comments on commit fe0606f

Please sign in to comment.