File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package loganalytics
2
2
3
3
import (
4
4
"context"
5
- "crypto/sha1"
5
+ "crypto/sha1" //#nosec
6
6
"encoding/json"
7
7
"fmt"
8
8
"github.com/Azure/azure-sdk-for-go/services/operationalinsights/v1/operationalinsights"
@@ -112,7 +112,7 @@ func (p *LogAnalyticsProber) Init() {
112
112
"metrics:%x" ,
113
113
string (sha1 .New ().Sum ([]byte (p .request .RequestURI ))),
114
114
),
115
- )
115
+ ) //#nosec
116
116
}
117
117
}
118
118
Original file line number Diff line number Diff line change 1
1
package loganalytics
2
2
3
3
import (
4
- "crypto/sha1"
4
+ "crypto/sha1" //#nosec
5
5
"encoding/json"
6
6
"fmt"
7
7
operationalinsightsProfile "github.com/Azure/azure-sdk-for-go/profiles/latest/operationalinsights/mgmt/operationalinsights"
@@ -50,7 +50,7 @@ func (sd *LogAnalyticsServiceDiscovery) ServiceDiscovery() {
50
50
cacheKey = fmt .Sprintf (
51
51
"sd:%x" ,
52
52
string (sha1 .New ().Sum ([]byte (fmt .Sprintf ("%v" , subscriptionList )))),
53
- )
53
+ ) //#nosec
54
54
}
55
55
56
56
// try cache
You can’t perform that action at this time.
0 commit comments