{"action":"created","issue":{"url":"https://api.github.com/repos/securego/gosec/issues/237","repository_url":"https://api.github.com/repos/securego/gosec","labels_url":"https://api.github.com/repos/securego/gosec/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/securego/gosec/issues/237/comments","events_url":"https://api.github.com/repos/securego/gosec/issues/237/events","html_url":"https://github.com/securego/gosec/issues/237","id":356835275,"node_id":"MDU6SXNzdWUzNTY4MzUyNzU=","number":237,"title":"G107 Incorrect behaviour","user":{"login":"impronunciable","id":165799,"node_id":"MDQ6VXNlcjE2NTc5OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/165799?v=4","gravatar_id":"","url":"https://api.github.com/users/impronunciable","html_url":"https://github.com/impronunciable","followers_url":"https://api.github.com/users/impronunciable/followers","following_url":"https://api.github.com/users/impronunciable/following{/other_user}","gists_url":"https://api.github.com/users/impronunciable/gists{/gist_id}","starred_url":"https://api.github.com/users/impronunciable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/impronunciable/subscriptions","organizations_url":"https://api.github.com/users/impronunciable/orgs","repos_url":"https://api.github.com/users/impronunciable/repos","events_url":"https://api.github.com/users/impronunciable/events{/privacy}","received_events_url":"https://api.github.com/users/impronunciable/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-04T14:26:00Z","updated_at":"2018-09-04T14:34:53Z","closed_at":null,"author_association":"NONE","body":"First of all, thanks for the library, is great 🙌\r\n\r\n### Summary \r\n\r\nAfter the gosec update that adds G107 I'm seeing an issue for every call to a \"Get\" function. Most of them are not \"net/http\" Get calls. \r\n\r\n### Steps to reproduce the behavior\r\n\r\nExample:\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"math/rand\"\r\n\t\"strconv\"\r\n)\r\n\r\ntype Foo struct{}\r\n\r\nfunc (f Foo) Get(foo string) {\r\n}\r\n\r\nfunc main() {\r\n\tbar := Foo{}\r\n\tbaz := strconv.Itoa(rand.Intn(4))\r\n\tbar.Get(baz)\r\n}\r\n```\r\n\r\n### gosec version\r\n\r\n1.1.0\r\n\r\n### Go version (output of 'go version')\r\n\r\n1.10.2\r\n\r\n### Operating system / Environment\r\n\r\ndarwin/amd64\r\n\r\n### Expected behavior\r\n\r\nOnly catch net/http url calls\r\n\r\n### Actual behavior\r\n\r\nGet a warning for any get call"},"comment":{"url":"https://api.github.com/repos/securego/gosec/issues/comments/418390421","html_url":"https://github.com/securego/gosec/issues/237#issuecomment-418390421","issue_url":"https://api.github.com/repos/securego/gosec/issues/237","id":418390421,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODM5MDQyMQ==","user":{"login":"ccojocar","id":591127,"node_id":"MDQ6VXNlcjU5MTEyNw==","avatar_url":"https://avatars1.githubusercontent.com/u/591127?v=4","gravatar_id":"","url":"https://api.github.com/users/ccojocar","html_url":"https://github.com/ccojocar","followers_url":"https://api.github.com/users/ccojocar/followers","following_url":"https://api.github.com/users/ccojocar/following{/other_user}","gists_url":"https://api.github.com/users/ccojocar/gists{/gist_id}","starred_url":"https://api.github.com/users/ccojocar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccojocar/subscriptions","organizations_url":"https://api.github.com/users/ccojocar/orgs","repos_url":"https://api.github.com/users/ccojocar/repos","events_url":"https://api.github.com/users/ccojocar/events{/privacy}","received_events_url":"https://api.github.com/users/ccojocar/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T14:34:53Z","updated_at":"2018-09-04T14:34:53Z","author_association":"CONTRIBUTOR","body":"@impronunciable Thanks for reporting this issue.\r\n\r\n@cschoenduve-splunk Please could you have look at it, it seems to be related to your changes. Thanks"}}
{"actor":{"display_login":"ccojocar"}}