Support TS and modules in node_sqli_injection rule
requested to merge KevSlashNull/gitlab-sast-rules:Support-TS-and-modules-in-node_sqli_injection-rule into main
What does this MR do?
This MR adds support for TypeScript and JS modules to the rules_lgpl_javascript_database_rule-node-sqli-injection
rule particularly because the import
syntax is already natively supported by some browsers and Node.js.
This also improves the description of said rule to make it easier to understand how to remediate the problem.
What are the relevant issue numbers?
Relates to gitlab-org/gitlab#440278 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Kev