Skip to content

Suppress SM05220 in src/DurableTask.AzureStorage/MessageManager.cs#1342

Open
AnatoliB wants to merge 1 commit intomainfrom
anatolib/codeql-fix-37181656
Open

Suppress SM05220 in src/DurableTask.AzureStorage/MessageManager.cs#1342
AnatoliB wants to merge 1 commit intomainfrom
anatolib/codeql-fix-37181656

Conversation

@AnatoliB
Copy link
Copy Markdown
Collaborator

@AnatoliB AnatoliB commented May 1, 2026

Copilot AI review requested due to automatic review settings May 1, 2026 01:04
Copy link
Copy Markdown
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 suppresses a security analyzer finding (SM05220) in MessageManager by explicitly documenting and justifying the use of Json.NET TypeNameHandling.Objects (with a serialization binder) when round-tripping polymorphic DurableTask history payloads through customer-owned Azure Storage.

Changes:

  • Added SuppressMessage attributes to silence .NET security analyzer warnings (CA2326/CA2327) for the MessageManager constructor.
  • Added an inline rationale comment describing why TypeNameHandling.Objects is required in this component and how the trust boundary is considered.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AnatoliB AnatoliB force-pushed the anatolib/codeql-fix-37181656 branch from d9164d4 to 89a7a10 Compare May 1, 2026 01:44
@AnatoliB AnatoliB marked this pull request as ready for review May 1, 2026 05:59
Copilot AI review requested due to automatic review settings May 1, 2026 06:00
Copy link
Copy Markdown
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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants