Skip to content

Commit

Permalink
fix: hashing of scanners in scan id (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
didroe authored Aug 15, 2023
1 parent 0b7dda6 commit 4408f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/artifact/scanid/scanid.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func hashRules(rules map[string]*settings.Rule) ([]byte, error) {
func hashScanners(scanners []string) ([]byte, error) {
hashBuilder := md5.New()

var sortedScanners []string
sortedScanners := make([]string, len(scanners))
copy(sortedScanners, scanners)
sort.Strings(sortedScanners)

Expand Down

0 comments on commit 4408f5e

Please sign in to comment.