fix: updated roleDefinitionIdOrName to use GUID and fixed CodeQL issue.#963
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the chat service’s side-effect patch import and refreshes infrastructure templates, including switching Storage role assignments to fixed role definition GUIDs and regenerating the ARM JSON output.
Changes:
- Adjusted Python patch import style and added/updated linter suppression comments in the patch module.
- Replaced Storage RBAC role names with role definition GUIDs in Bicep templates.
- Regenerated
infra/main.json(new Bicep generator version, updated template hash, and some formatting/order-only diffs).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| src/api/services/chat_service.py | Changes how the patch module is imported for side effects. |
| src/api/services/_patches/agent_framework_search_citations.py | Updates comments/noqa annotations around patch application state. |
| infra/main.bicep | Uses RBAC role definition GUIDs instead of role names for storage role assignments. |
| infra/main_custom.bicep | Same RBAC role GUID update as main.bicep. |
| infra/main.json | Regenerated ARM template output (generator version/hash, formatting, and some ordering changes). |
Comments suppressed due to low confidence (2)
infra/main.json:1
- This introduces CRLF (
\\r\\n) line endings inside a JSON string where previously it was LF (\\n). That tends to create noisy cross-platform diffs and can cause unexpected downstream string comparisons. Consider regenerating with consistent LF output and/or enforcing.gitattributes(e.g.,*.json text eol=lf) so generated templates remain stable across environments.
infra/main.json:1 - The generated template now reflects a newer Bicep compiler version. If CI/CD or dev tooling expects a pinned Bicep version for reproducible
main.jsongeneration, consider updating the pinned version/documentation (or the build pipeline) to match this change to avoid future drift and PR churn.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Roopan-Microsoft
approved these changes
Jun 16, 2026
Contributor
Author
|
@microsoft-github-policy-service agree |
Contributor
|
🎉 This PR is included in version 3.23.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information