-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hackaton: Experimental OpenAI-GPT code validation with tzap #130
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work!! 🥳 🥳 I really like this idea!
Some minor comments:
} | ||
|
||
var Analyzer = &analysis.Analyzer{ | ||
Name: "go-sec", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo?
Name: "go-sec", | |
Name: "tzap", |
err = nil | ||
retry-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused by this. Won't this cause err
to always be nil
, and why is retry decreased if i
is already increasing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I think I am mistaken in how the err
object is assigned and the retry--
is a leftover from a previous logic. thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! 🥳
This PR adds support for experimental validations using openai-gpt. It uses tzap (MIT License) to run validations against the plugin source code.
GPT models are not fully reliable in code analysis and thus a new "suspected" report category is introduced in this PR to prevent false positives to leak into a more deterministic analysis from the other analysis