File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package main
2
2
3
3
import (
4
4
"context"
5
- "crypto/sha1"
5
+ "crypto/sha1" // #nosec G505 -- used as a non-cryptographic hash function to hash IDs
6
6
"database/sql"
7
7
_ "embed"
8
8
"encoding/hex"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package main
2
2
3
3
import (
4
4
"context"
5
- "crypto/sha1"
5
+ "crypto/sha1" // #nosec G505 -- used as a non-cryptographic hash function to hash IDs
6
6
"github.com/icinga/icinga-go-library/database"
7
7
"github.com/icinga/icinga-go-library/objectpacker"
8
8
"github.com/icinga/icinga-go-library/types"
@@ -54,7 +54,7 @@ var objectTypes = map[uint8]string{1: "host", 2: "service"}
54
54
55
55
// hashAny combines objectpacker.PackAny and SHA1 hashing.
56
56
func hashAny (in interface {}) []byte {
57
- hash := sha1 .New ()
57
+ hash := sha1 .New () // #nosec G401 -- used as a non-cryptographic hash function to hash IDs
58
58
if err := objectpacker .PackAny (in , hash ); err != nil {
59
59
panic (err )
60
60
}
You can’t perform that action at this time.
0 commit comments