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
Read Words xargs Appends to a gh Write in the Write Guard #3336
Found by the local review of the lane closing #3074, which fails closed on a merge, commit, or push that xargs runs. Develop's guard shares it, and it was confirmed with a classify probe on a constructed command.
Words xargs Appends to a gh Write Are Not Read for Its Target
xargs appends the words it reads from its input to the command it runs. Rule 3 reads a gh write's target from the words written after gh, so an appended repo flag goes unread:
printf -- '-R stranger/example' | xargs gh pr comment 5 -b x is allowed, and gh comments on stranger/example.
The same holds for any gh write whose target or body flag xargs may supply.
Possible Direction
Read a gh write that xargs runs as one whose target the guard does not read, and fail closed with the advice to write every word out, as #3074's change does for a merge.
Activity
Read Every Launcher and Exported Git Directory in the Write Guard (#3342
Read Tokenizer, Directory-Value, and Launched-String Gaps in the Writ…
Close Export, Xargs, Env, and Launcher Allow Gaps in the Write Guard (#…