github / codeql

CodeQL: the libraries and queries that power security researchers around the world, as well as code scanning in GitHub Advanced Security
https://codeql.github.com
MIT License
7.48k stars 1.49k forks source link

LGTM.com - false positive #7235

Open simontorres opened 2 years ago

simontorres commented 2 years ago

Description of the false positive

I'm getting a lot of these alerts. According to the library's documentation, the code is correct on the implementation so the instance is actually a callable.

URL to the alert on the project page on LGTM.com https://lgtm.com/projects/g/soar-telescope/goodman_pipeline/snapshot/3a94b38f6aa18d38068665a6a179ffb2090a4d76/files/goodman_pipeline/core/core.py?sort=name&dir=ASC&mode=heatmap#xaf11d18d3e57a67:1

MathiasVP commented 2 years ago

Indeed, this looks like a false positive. Thank you for reporting it!

Our current focus is on improving our security analysis. Because your report does not relate to a security query, we will put this on our backlog and prioritize it if we get enough reports of the same underlying issue in other projects. If you think that your report is related to our security analysis, please clarify that in a comment. Either way, we'll let you know here as soon as it's fixed!

As you might know, all of our queries are open source. If you do have an idea for a code change, we encourage you to open a pull request. GitHub Code Scanning and lgtm.com have facilities for suppressing individual alerts or disabling a query.

simontorres commented 2 years ago

@MathiasVP Thanks for looking into this so quickly. I'll just wait. It's not critical for me just thought it would be useful to report it.

Cheers.