1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-23 22:15:04 +02:00

Fileperms (#442)

This commit is contained in:
Sam Caccavale
2020-02-28 06:48:18 -05:00
committed by GitHub
parent 00363edac5
commit a305f10eb9
7 changed files with 73 additions and 2 deletions

View File

@@ -127,6 +127,10 @@ var _ = Describe("gosec rules", func() {
runner("G305", testutils.SampleCodeG305)
})
It("should detect poor permissions when writing to a file", func() {
runner("G306", testutils.SampleCodeG306)
})
It("should detect weak crypto algorithms", func() {
runner("G401", testutils.SampleCodeG401)
})