Skip to content

Conversation

@geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented May 1, 2025

Update query severities:

  • promote rust/uncontrolled-allocation-size to warning (recommendation was unreasonably low; this change will cause the query to appear in the code scanning suite, as originally intended).
  • demote rust/cleartext-logging to warning (the same as rust/cleartext-transmission, which I think has this right).

Copilot AI review requested due to automatic review settings May 1, 2025 15:49
@geoffw0 geoffw0 added the Rust Pull requests that update Rust code label May 1, 2025
@geoffw0 geoffw0 requested a review from a team as a code owner May 1, 2025 15:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adjusts the severity levels of two Rust QL security queries to better align with their intended visibility in Code Scanning.

  • Promote rust/uncontrolled-allocation-size from recommendation to warning.
  • Demote rust/cleartext-logging from error to warning.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
rust/ql/src/queries/security/CWE-770/UncontrolledAllocationSize.ql Changed @problem.severity to warning.
rust/ql/src/queries/security/CWE-312/CleartextLogging.ql Changed @problem.severity to warning.

Copy link
Contributor

@paldepind paldepind left a comment

Choose a reason for hiding this comment

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

Looks great to me! Nice to align rust/cleartext-logging and rust/cleartext-transmission.

@geoffw0
Copy link
Contributor Author

geoffw0 commented May 12, 2025

100%.

@geoffw0 geoffw0 merged commit 6678dc4 into github:main May 12, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants