fix: codeql issue for insecure temporary file#16173
Conversation
❌ VscUse Test Plan — Tests unknownWhy these tests: Changed files are in packages/fx-core (core utility/security fix, not vscode-extension or templates), which is an infrastructure/non-template change, so only 2 smoke plans are selected as a basic sanity check. Branch diff: Plans run:
ℹ️ How were these tests selected?GitHub Copilot (Claude Sonnet 4.6, high reasoning) analysed the PR title, description, and the diff between |
| appYaml.add(projectIdField); | ||
| await fs.writeFile(projectYamlPath, appYaml.toString()); // only write yaml file once instead of write yaml file after every command | ||
| if (!this.isInTempDirectory(projectYamlPath)) { | ||
| await fs.writeFile(projectYamlPath, appYaml.toString()); |
| appYaml.set("projectId", settings.trackingId); | ||
| await fs.writeFile(projectYamlPath, appYaml.toString()); | ||
| if (!this.isInTempDirectory(projectYamlPath)) { | ||
| await fs.writeFile(projectYamlPath, appYaml.toString()); |
E2E Test Selection — AI SelectedWhy these tests: Changes to fx-core ManifestUtils.ts (teamsApp manifest handling) and settingsUtil.ts (cross-cutting core utility) map to teamsApp/, teamsAgent/, declarativeAgent/, and feature/multienv per rule 1; ManifestUtils is specifically used in manifest validation across all app types including declarative agents. Cases selected (21):
Need to run more tests?Comment on this PR:
Then re-run the workflow. |
…ile' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
❌ VscUse Test Plan — Tests unknownWhy these tests: Changed files are in packages/fx-core (core utility/driver code, not templates or vscode-extension UI), which is a cross-cutting infrastructure fix; applying 2 smoke plans as a basic sanity check. Branch diff: Plans run:
ℹ️ How were these tests selected?GitHub Copilot (Claude Sonnet 4.6, high reasoning) analysed the PR title, description, and the diff between |
…ile' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
❌ VscUse Test Plan — Tests failureWhy these tests: Changed files are in packages/fx-core (core utility/infra fixes for insecure temp file, not VS Code extension or templates), so only 2 smoke plans are selected as a basic sanity check. Branch diff: Plans run:
ℹ️ How were these tests selected?GitHub Copilot (Claude Sonnet 4.6, high reasoning) analysed the PR title, description, and the diff between |
✅ VscUse Test Plan — All tests passedWhy these tests: Changes are in packages/fx-core (core infra, not vscode-extension or templates), fixing a CodeQL security issue in utility files — treated as trivial/infra changes warranting only 1-2 smoke plans. Branch diff: Plans run:
ℹ️ How were these tests selected?GitHub Copilot (Claude Sonnet 4.6, high reasoning) analysed the PR title, description, and the diff between |
https://dev.azure.com/msazure/Microsoft%20Teams%20Extensibility/_workitems/edit/38459560