-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Ruby: Add additional sql sinks for ActiveRecord connection methods #15619
Ruby: Add additional sql sinks for ActiveRecord connection methods #15619
Conversation
25f229d
to
1eea99e
Compare
ruby/ql/lib/change-notes/2024-02-15-activerecord_connection_sql_sinks
Outdated
Show resolved
Hide resolved
1eea99e
to
e36b9f4
Compare
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.
Sorry for the delay in reviewing this! One minor comment, otherwise looks great.
call = activeRecordConnectionInstance().getAMethodCall("execute") and | ||
call = | ||
activeRecordConnectionInstance() | ||
.getAMethodCall([ |
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.
We can add create
(an alias for insert
) to this.
I think we can also remove select_update
? I can't find this as a query execution method.
Ah it looks like you need an explicit re-approval from @alexrford to merge this - I thought my approval would be enough. Sorry! |
Part of https://github.com/github/codeql-team/issues/2616 and https://github.com/github/codeql-team/issues/2559