Skip to content

Commit 765930c

Browse files
committed
ignore gosec issues
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent cfea3e8 commit 765930c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

loganalytics/prober.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package loganalytics
22

33
import (
44
"context"
5-
"crypto/sha1"
5+
"crypto/sha1" //#nosec
66
"encoding/json"
77
"fmt"
88
"github.com/Azure/azure-sdk-for-go/services/operationalinsights/v1/operationalinsights"
@@ -112,7 +112,7 @@ func (p *LogAnalyticsProber) Init() {
112112
"metrics:%x",
113113
string(sha1.New().Sum([]byte(p.request.RequestURI))),
114114
),
115-
)
115+
) //#nosec
116116
}
117117
}
118118

loganalytics/servicediscovery.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package loganalytics
22

33
import (
4-
"crypto/sha1"
4+
"crypto/sha1" //#nosec
55
"encoding/json"
66
"fmt"
77
operationalinsightsProfile "github.com/Azure/azure-sdk-for-go/profiles/latest/operationalinsights/mgmt/operationalinsights"
@@ -50,7 +50,7 @@ func (sd *LogAnalyticsServiceDiscovery) ServiceDiscovery() {
5050
cacheKey = fmt.Sprintf(
5151
"sd:%x",
5252
string(sha1.New().Sum([]byte(fmt.Sprintf("%v", subscriptionList)))),
53-
)
53+
) //#nosec
5454
}
5555

5656
// try cache

0 commit comments

Comments
 (0)