fix(skills): re-validate pack URL before git clone

This commit is contained in:
Abhimanyu Saharan
2026-02-13 23:21:47 +00:00
parent 7e48f1a9e0
commit dcdbbb7e5c

View File

@@ -378,6 +378,9 @@ def _collect_pack_skills_from_repo(
def _collect_pack_skills(source_url: str) -> list[PackSkillCandidate]:
"""Clone a pack repository and collect skills from index or `skills/**/SKILL.md`."""
# Defense-in-depth: validate again at point of use before invoking git.
_validate_pack_source_url(source_url)
with TemporaryDirectory(prefix="skill-pack-sync-") as tmp_dir:
repo_dir = Path(tmp_dir)
try: