Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

Fix Dependabot XSS alerts by bumping Astro site template to 7.1 (#317)

Priyanshu Agrawalfca48b9e93d0
diff --git a/plugins/power-pages/skills/create-site/SKILL.md b/plugins/power-pages/skills/create-site/SKILL.md
index 799c49531..7b4b01692 100644
--- a/plugins/power-pages/skills/create-site/SKILL.md
+++ b/plugins/power-pages/skills/create-site/SKILL.md
@@ -176,6 +176,9 @@ cd "<PROJECT_ROOT>"
npm install
```
+> **Astro requires Node 22.12 or newer.**
+> Astro 7 exits with `Node.js vX is not supported by Astro!` on anything older, so when the chosen framework is Astro, run `node --version` first and ask the user to upgrade before continuing.
+
### 2.5 Initialize Git Repository
Initialize a git repo and make the first commit. This captures all template files AND `package-lock.json` in one clean baseline:
diff --git a/plugins/power-pages/skills/create-site/assets/astro/package.json b/plugins/power-pages/skills/create-site/assets/astro/package.json
index 3c70fcdc4..1c1c6232f 100644
--- a/plugins/power-pages/skills/create-site/assets/astro/package.json
+++ b/plugins/power-pages/skills/create-site/assets/astro/package.json
@@ -9,6 +9,9 @@
"preview": "astro preview"
},
"dependencies": {
- "astro": "^6.1.6"
+ "astro": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
}
}