Dashboardcraftaction.yml PATH_INPUT validation and am…

action.yml PATH_INPUT validation and ambient workspace

Category: gotcha
Confidence: 1.00
ID: 01a06eda-4338-700e-8968-9d13e6f7da55
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: 0281LnSbAUxiwnfyl
Created: 2026-08-28 12:06:33
Updated: 2026-09-04 23:56:32

Content

Validate inputs.path as a safe concrete relative checkout path before every Action side effect, under LC_ALL=C: each slash-separated segment must match ASCII [A-Za-z0-9_.-]+ and must not be empty, ., .., __proto__, or start with -. This preserves paths such as packages/CLI while blocking traversal, prototype, and option-like values. Clear CRAFT_WORKSPACE for both Craft invocations unless an explicit Action workspace input is supplied, so inherited ambient selection cannot diverge from controller state.

Move to: