Skip to content

Updating Node Insecure Random Generator rule and tests

Bhavya Kaushal requested to merge node-random-num-gen into main

What does this MR do?

This MR updates the Node Insecure Random Generator Community Rule and its correponsing test file.

  1. It slightly modifies the patterns to reduce false positives.
  2. It updates the description to add detailed explanation and secure code example.
  3. It updates the rule metadata.
  4. It updates the test cases to cover different syntax styles.

What are the relevant issue numbers?

Addresses issue : gitlab-org/gitlab#440264 (closed)

Does this MR meet the acceptance criteria?

Merge request reports