Skip to content

Refactor SDK initialization commands to fetch templates from GitHub r…#222

Merged
luke-hagar-sp merged 4 commits intomainfrom
update-templates
Feb 17, 2026
Merged

Refactor SDK initialization commands to fetch templates from GitHub r…#222
luke-hagar-sp merged 4 commits intomainfrom
update-templates

Conversation

@luke-hagar-sp
Copy link
Contributor

…epositories. Removed embedded file contents and added a new function to handle downloading and initializing projects. Updated command descriptions and example outputs for clarity. Added documentation for template repositories and their usage.

Description

What is the intent of this change and why is it being made?

How Has This Been Tested?

What testing have you done to verify this change?

…epositories. Removed embedded file contents and added a new function to handle downloading and initializing projects. Updated command descriptions and example outputs for clarity. Added documentation for template repositories and their usage.
… test_create.json to change project name and added new test cases for project initialization and extraction in fetch_test.go. Removed outdated SDK_TEMPLATE_REPOS.md file.
…ding test case

Enhanced the ExtractAndInitProject function to reject path traversal and absolute paths in archive entries, preventing potential Zip Slip vulnerabilities. Added a new test case in fetch_test.go to verify that the function correctly handles malicious tarball entries, ensuring no files are created outside the intended project directory.
@philip-ellis-sp
Copy link
Contributor

If we don't do this already, should we notify the user that we are going to download a template from github/sailpoint-oss .... prior to doing the fetch call?

Added logging statements to the FetchAndInitProject and ExtractAndInitProject functions to provide better visibility into the fetching, downloading, and extraction processes. This includes logging the repository owner, repository name, and project name at various stages, improving traceability during project setup.
@luke-hagar-sp luke-hagar-sp merged commit 0112f7f into main Feb 17, 2026
8 checks passed
@luke-hagar-sp luke-hagar-sp deleted the update-templates branch February 17, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants