File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package loganalytics
22
33import (
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
Original file line number Diff line number Diff line change 11package loganalytics
22
33import (
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
You can’t perform that action at this time.
0 commit comments