Skip to content

Rust: Update query severities #19449

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

Merged
merged 4 commits into from
May 12, 2025
Merged

Rust: Update query severities #19449

merged 4 commits into from
May 12, 2025

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 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 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