Dashboard › craft › Distillation
2112fa47-35c5-4017-908f-b2ebd456d968["lore_tm_v1_4u2Dbf65xoq4ob5n6yiznNn9eRdSe6MlxQs3uK9N8-I","lore_tm_v1_uoyW74IVrxYzLfBlumrRvn4Lb-t-CBxlgZgJe6imFFc"]
Date: Sep 8, 2026
workspace matches in /home/byk/Code/getsentry/craft-workspace-action-propagation: action.yml defines input workspace at lines 34β35 (βNamed Craft release workspace to prepare and publishβ), validates it around lines 74β89, rejects simultaneous path and workspace inputs at line 82, validates slash-separated segments with /^[A-Za-z0-9_.-]+$/ while rejecting ., .., __proto__, and names beginning - at line 89, and passes --workspace=$WORKSPACE in command argument construction at lines 188β248; .github/workflows/release.yml defines workspace inputs at lines 15β16 and 57β58 and forwards workspace values at lines 132 and 150. .github/workflows/build.yml matches only ${{ github.workspace }} paths at lines 85β86 and 118./home/byk/Code/getsentry/craft-workspace-action-propagation/src/utils/__tests__/helpers.test.ts lines 1β155. It imports disableChangelogMentions, envToBool, extractWorkspaceSelection, MAX_STEP_OUTPUT_BYTES, setGitHubActionsOutput, truncateForOutput, and writeGitHubActionsFile from ../helpers.envToBool tests in src/utils/__tests__/helpers.test.ts:17β35 specify false for undefined, null, false, 'undefined', 'null', '', '0', and 'no'; true for true, 'true', 1, '1', 'yes', and 'dogs are great!'.extractWorkspaceSelection tests in src/utils/__tests__/helpers.test.ts:37β132 specify: no CLI workspace flag and no environment returns undefined; --workspace cli returns 'cli'; --workspace=mcp returns 'mcp'; inline --workspace=-cli accepts '-cli', but separate --workspace -cli returns undefined; a CLI value overrides CRAFT_WORKSPACE; repeated flags use the last value; and a final bare --workspace falls back to CRAFT_WORKSPACE.extractWorkspaceSelection edge-case tests specify that --workspace must not consume a following flag such as --dry-run; it instead falls back to CRAFT_WORKSPACE or returns undefined when no environment selection exists. A bare trailing --workspace similarly falls back to CRAFT_WORKSPACE or returns undefined, and empty --workspace= falls back to CRAFT_WORKSPACE.setGitHubActionsOutput test setup in src/utils/__tests__/helpers.test.ts:134β155 creates a temporary craft-test-${Date.now()} directory, sets process.env.GITHUB_OUTPUT to its GITHUB_OUTPUT file, initializes the file, restores the original environment after each test, and removes the temporary directory. The first shown test expects setGitHubActionsOutput('version', '1.2.3') to write a single-line name=value output.