Commit Graph
5 Commits
Author SHA1 Message Date
f3fce8dd78 policy: escape XML special characters in ADML/profile output (#322148)
* policy: escape XML special characters in ADML/profile output (#320551)

Policy descriptions containing angle brackets (e.g. `<plugin>@<marketplace>`,
`<url>`) produced invalid XML in generated ADML and macOS profile files,
causing Intune and Active Directory upload failures.

Add `escapeXml` helper that escapes `&`, `<`, and `>` in text content
and apply it in `renderADMLString` and `renderProfileString`. Add unit
tests for the escaper and an E2E regression test with angle-bracket
descriptions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* policy: replace angle brackets with curly braces in plugin description placeholders (#320551)

The policy descriptions for ChatEnabledPlugins and ChatExtraMarketplaces
used `<plugin>`, `<marketplace>`, and `<url>` as placeholder tokens.
These are not HTML/XML tags — replace with `{plugin}`, `{marketplace}`,
and `{url}` to avoid ambiguity and eliminate the source of the invalid
XML that was fixed in the previous commit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* address PR review: remove useless backtick escapes, clarify test name

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-19 13:40:28 -07:00
Johannes 2c368160e0 build: migrate tests from mocha to node native test runner 2026-04-10 10:49:47 +02:00
2648263d3e Run our build scripts directly as typescript (#277567)
* Run our build scripts directly as typescript #277567

Follow up on #276864
For #277526

* Remove a few more ts-node references

* Fix linux and script reference

* Remove `_build-script` ref

* Fix script missing closing quote

* use type only import

* Fix export

* Make sure to run copy-policy-dto

* Make sure we run the copy-policy-dto script

* Enable `verbatimModuleSyntax`

* Pipelines fixes

* Try adding explicit ext to path

* Fix bad edit

* Revert extra `--`

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2025-11-21 14:56:00 +01:00
PaulandGitHub e81696f60d Add policy support for linux (#272579) 2025-10-22 16:01:59 -07:00
PaulandGitHub 0ea6a23376 Modularize the policy generation script (#272332) 2025-10-22 00:08:32 +00:00