Skip to content

Conversation

@pixeebot
Copy link
Contributor

@pixeebot pixeebot bot commented Apr 22, 2024

I've reviewed the recently opened PR (495 - Adds sonar version of SQLParameterizer codemod) and have identified some area(s) that could benefit from additional hardening measures.

These changes should help prevent potential security vulnerabilities and improve overall code quality.

Thank you for your consideration!

docs | feedback
Powered by: pixeebot

@pixeebot pixeebot bot requested a review from drdavella as a code owner April 22, 2024 11:45
@pixeebot pixeebot bot requested a review from andrecsilva April 22, 2024 11:45

conn = sqlite3.connect("example")
conn.cursor().execute(sql % (user)) # Noncompliant
conn.cursor().execute(sql, ((user), )) # Noncompliant
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parameterized SQL query execution.

@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarCloud

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant