ci: freeze golangci action version (#5196)

## Description

This PR updates golang-ci to latest and stops looking at master for the action. 

Closes: #XXX
This commit is contained in:
Marko
2020-08-03 07:57:06 +00:00
committed by GitHub
parent 19fad101e2
commit 2d167aefcf
8 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ func (p *snapshotPool) GetPeer(snapshot *snapshot) p2p.Peer {
if len(peers) == 0 {
return nil
}
return peers[rand.Intn(len(peers))]
return peers[rand.Intn(len(peers))] // nolint:gosec // G404: Use of weak random number generator
}
// GetPeers returns the peers for a snapshot.