mirror of
https://github.com/gadievron/raptor.git
synced 2026-04-25 05:56:00 +03:00
[PR #49] [MERGED] Add shlex import for future shell command escaping #53
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/raptor#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/gadievron/raptor/pull/49
Author: @gadievron
Created: 12/22/2025
Status: ✅ Merged
Merged: 12/26/2025
Merged by: @danielcuthbert
Base:
main← Head:fix/bug-43-shell-escaping📝 Commits (1)
bba41ceAdd shlex import for future shell command escaping📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
packages/codeql/build_detector.py(+1 -0)📄 Description
Summary
Adds
shlex.quoteimport to build_detector.py as preventative measure for future wrapper script generation that will need proper path escaping.Problem
Repository paths with spaces, quotes, or special characters (e.g.,
/Users/dev/My Projects/app) must be properly escaped when used in shell commands to prevent failures and potential security issues.Issue #43 identifies lines 452, 466, and 472 in build_detector.py as locations where wrapper scripts are generated without proper escaping. However, this code does not currently exist in the codebase.
Changes
File:
packages/codeql/build_detector.pyLine: 14 (imports section)
Added:
This import will be available when wrapper script generation is implemented in the future.
Type of Change
Status
This is a preventative PR. The wrapper script generation code referenced in issue #43 does not exist in the current codebase. This PR adds the necessary import so it's available when wrapper scripts are implemented.
Future Implementation
When wrapper scripts are added, paths should be escaped like:
Instead of:
Impact
Related to #43 (preventative fix)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.