Skip to content

[6.0] Add CodeQL suppression for DefaultAzureCredential and fix macOS CI failures #3551

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 2 commits into from
Aug 12, 2025

Conversation

paulmedynski
Copy link
Contributor

Port of #3542.

  • Adjusted CodeQL suppression to meet the strict requirements of where it may appear relative to the flagged code.
  • Adding catch for macOS socket error to log and ignore.

…3542)

* Task 37261: [S360] [SM05137] DefaultAzureCredential use in Production

- Adjusted CodeQL suppression to meet the strict requirements of where it may appear relative to the flagged code.

* Task 37261: [S360] [SM05137] DefaultAzureCredential use in Production

- Adding catch for macOS socket error to log and ignore.
@paulmedynski paulmedynski added this to the 6.0.3 milestone Aug 8, 2025
@Copilot Copilot AI review requested due to automatic review settings August 8, 2025 12:41
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 ports changes from the main branch to version 6.0, focusing on fixing CodeQL security warnings and macOS CI failures. The changes improve code quality and cross-platform compatibility by addressing static analysis tool requirements and platform-specific socket handling issues.

  • Adds proper CodeQL suppression comments for DefaultAzureCredential instantiation with detailed justification
  • Implements error handling for macOS socket timeout setting failures with appropriate logging
  • Refactors code to meet strict CodeQL suppression placement requirements

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
ActiveDirectoryAuthenticationProvider.cs Adds CodeQL suppression with detailed justification and refactors DefaultAzureCredential instantiation
SNITcpHandle.cs Adds error handling for socket timeout reset failures on macOS with logging

@cheenamalhotra cheenamalhotra merged commit ea12280 into release/6.0 Aug 12, 2025
122 of 128 checks passed
@cheenamalhotra cheenamalhotra deleted the dev/paul/release/6.0-codeql branch August 12, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants