Update template --allow-scripts help text with explicit trust warning and propagate localization source updates#54393
Open
Copilot wants to merge 3 commits into
Open
Conversation
Agent-Logs-Url: https://github.com/dotnet/sdk/sessions/d6c706a2-780f-4a16-8fb7-487d1890a91f Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
This reverts commit fd3d70a. Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/sdk/sessions/d6c706a2-780f-4a16-8fb7-487d1890a91f Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
marcpopMSFT
May 20, 2026 21:32
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the dotnet new template --allow-scripts option description to include an explicit security warning about arbitrary code execution via MSBuild, and propagates the updated English source string across localization files so translations are flagged for review.
Changes:
- Expanded
TemplateCommand_Option_AllowScriptshelp text inSymbolStrings.resxwith an explicit trust warning. - Regenerated
SymbolStrings.*.xlfso the updated<source>is reflected across locales. - Marked existing translations for the updated key as
needs-review-translation.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/SymbolStrings.resx | Updates the English help text for --allow-scripts with an explicit security warning. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.cs.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.de.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.es.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.fr.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.it.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.ja.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.ko.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.pl.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.pt-BR.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.ru.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.tr.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.zh-Hans.xlf | Updates localization source string and marks translation as needing review. |
| src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/SymbolStrings.zh-Hant.xlf | Updates localization source string and marks translation as needing review. |
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.
This updates the
TemplateCommand_Option_AllowScriptsmessage inSymbolStrings.resxto include a clear security warning about arbitrary code execution via MSBuild. The localization source strings are regenerated so translation files track the new English source and require translation review.Resource text update
--allow-scriptsdescription in:src/Cli/Microsoft.TemplateEngine.Cli/Commands/SymbolStrings.resxLocalization propagation
SymbolStrings.*.xlfunder:src/Cli/Microsoft.TemplateEngine.Cli/Commands/xlf/<source>forTemplateCommand_Option_AllowScriptsacross locales.needs-review-translationfor this key.