//args: -Egosec //config_path: testdata/configs/gosec.yml package testdata import "io/ioutil" const gosecToken = "62ebc7a03d6ca24dca1258fd4b48462f6fed1545" const gosecSimple = "62ebc7a03d6ca24dca1258fd4b48462f6fed1545" // ERROR "G101: Potential hardcoded credentials" func gosecCustom() { ioutil.WriteFile("filename", []byte("test"), 0755) // ERROR "G306: Expect WriteFile permissions to be 0666 or less" }