You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preserve apostrophes in fleet-check helper paths (polish for #4, R1) #25
R1 [polish] catalog/fleet-check/check.sh:14 (Sweep): literal replacement of fleet_sh inside a single-quoted shell assignment breaks an existing helper path containing an apostrophe. Found in pull request #16 at a47c390; this narrow configuration case is polish and does not block the merge.
Reproduced from a clean pinned checkout with a synthetic helper. A path ending in helper with spaces.sh runs the helper, prints start #4 and exits 0. A path ending in helper's script.sh does not run the helper, produces shell errors and prints a failure wake. The format allows string parameter values and replaces them literally, so this value reaches the assignment unchanged.
Fix: preserve apostrophes when loading fleet_sh, for example by reading the substituted path through a quoted heredoc instead of embedding it in a single-quoted shell assignment. Add a regression case showing that the same existing helper runs from an apostrophe-containing directory. An equivalent fix that treats the path as literal data is acceptable.
This is not a missing credential or an established security finding. The script correctly explains its same-thread sandbox and existing gh login.
Activity