Add OIDC workflow for CEINTL localization feedback#14497
Draft
AlesProkop wants to merge 3 commits into
Draft
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 06a84a0d-a4b0-4915-883e-34a02ff7632d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 06a84a0d-a4b0-4915-883e-34a02ff7632d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 06a84a0d-a4b0-4915-883e-34a02ff7632d
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.
Related to #14246
Context
The expert-review workflow can identify translation defects in OneLoc pull requests, but filing the corresponding CEINTL feedback is manual. This adds fully automatic filing that uses GitHub OIDC and a dedicated Microsoft Entra identity instead of a PAT.
Changes Made
.github/workflows/file-ceintl-localization-feedback.ymlto scan open pull requests once daily and select unhandled OneLoc findings.dotnet-botauthor, OneLoc title and branch, trusted repository, localization-only files, and findings from the MSBuild expert-review workflows.ceintl-ticketingenvironment without checking out or executing pull-request code.scripts/New-CeintlLocalizationFeedback.ps1to load the CEINTL Feedback template, preserve writable template fields, deduplicate by an exact pull-request tag, create the work item, and return its URL.documentation/wiki/Localization.md.Testing
scripts/New-CeintlLocalizationFeedback.ps1with the PowerShell AST parser.ConvertFrom-Yaml.dotnet-botpull requests.Notes
https://token.actions.githubusercontent.com, subjectrepo:dotnet/msbuild:environment:ceintl-ticketing, and audienceapi://AzureADTokenExchange.ceapexAzure DevOps organization andCEINTLproject, granting only the work-item/template read access and work-item creation access required by this workflow.ceintl-ticketingwithout required reviewers. Restrict its deployment branches to the default branch so scheduled jobs can obtain OIDC tokens only from trusted workflow code.CEINTL_CLIENT_ID,CEINTL_TENANT_ID, andCEINTL_TEAM.CEINTL_TEAMmust identify the team that owns Feedback template9a48bdd1-98da-4592-8d8d-c52c0856301d.