This commit is contained in:
parent
a7e56290b9
commit
c0b235d8e2
|
@ -18,8 +18,9 @@ jobs:
|
||||||
- name: go vet -v ./...
|
- name: go vet -v ./...
|
||||||
run: go vet -v ./...
|
run: go vet -v ./...
|
||||||
- name: gosec ./...
|
- name: gosec ./...
|
||||||
uses: securego/gosec@master
|
run: | # https://github.com/securego/gosec/issues/469
|
||||||
with:
|
export PATH=$PATH:$(go env GOPATH)/bin
|
||||||
args: -exclude=G404 ./...
|
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||||
|
gosec ./...
|
||||||
- name: go build -v ./...
|
- name: go build -v ./...
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
|
|
|
@ -95,6 +95,8 @@ func (mm MarkovMap) Get(w1, w2 string) string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We don't care about cryptographically sound entropy here, ignore gosec G404.
|
||||||
|
/* #nosec */
|
||||||
r := rand.Intn(len(suffix))
|
r := rand.Intn(len(suffix))
|
||||||
return suffix[r]
|
return suffix[r]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue