Skip to content
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

Added CodeQL supression comment #18431

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Added CodeQL supression comment #18431

merged 2 commits into from
Jan 15, 2025

Conversation

javierdlg
Copy link
Member

Summary of the Pull Request

CodeQL is raising errors when building Visual Studio since we have a dependency on Windows Terminal for our integrated terminal. The issue raised by CodeQL refers to a non-constant string format, but in this case the string comes from a resource file and should be considered constant.

This PR adds an ignore comment for CodeQL

References and Relevant Issues

CodeQL error: https://liquid.microsoft.com/codeql/issues/95192647-5121-4d27-b873-63e63e825d72?copilot_promptid=E91B0CE9-0C1B-4AC2-8A46-33F49B67E058

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)

@@ -115,7 +115,7 @@ void SaveConsoleSettingsIfNeeded(const HWND hwnd)
LoadStringW(ghInstance, IDS_LINKERROR, awchBuffer, ARRAYSIZE(awchBuffer));
StringCchPrintf(szMessage,
ARRAYSIZE(szMessage),
awchBuffer,
awchBuffer, // CodeQL [SM01734] Pulled from a resource file and cannot be a string literal
Copy link
Member

Choose a reason for hiding this comment

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

wait, didn't you fix one of these already? Does CodeQL spit out a single error every time? Can it be made to report all of them instead so we can fix them all in one PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

@DHowett Yeah I didn't realize it wasn't one of the files under OSS that got fixed for 1.22. This is the last one we got with our set of 3 from a couple months ago. I don't expect any more of these

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

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

qq ut supra

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jan 15, 2025
@DHowett DHowett merged commit 25392ea into main Jan 15, 2025
20 checks passed
@DHowett DHowett deleted the dev/jadelaga/CodeQLWarningFix2 branch January 15, 2025 20:57
DHowett pushed a commit that referenced this pull request Jan 15, 2025
CodeQL is raising errors when building Visual Studio since they have a
dependency on Windows Terminal for our integrated terminal. The issue
raised by CodeQL refers to a non-constant string format, but in this
case the string comes from a resource file and should be considered
constant.

(cherry picked from commit 25392ea)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgWYgYU
Service-Version: 1.22
DHowett pushed a commit that referenced this pull request Jan 15, 2025
CodeQL is raising errors when building Visual Studio since they have a
dependency on Windows Terminal for our integrated terminal. The issue
raised by CodeQL refers to a non-constant string format, but in this
case the string comes from a resource file and should be considered
constant.

(cherry picked from commit 25392ea)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgWYgYM
Service-Version: 1.21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Cherry Picked
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

3 participants