@juangcarmona/lighthouse-sdlc 0.23.7 → 0.23.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juangcarmona/lighthouse-sdlc",
3
- "version": "0.23.7",
3
+ "version": "0.23.8",
4
4
  "type": "module",
5
5
  "description": "Provider-neutral SDLC skills, commands and route contracts for Lighthouse adopters",
6
6
  "repository": {
@@ -173,8 +173,9 @@ async function main() {
173
173
  const ownershipDirectory = `${config.lock}.resources`;
174
174
  runtimeReceipt.recoveredCleanup = recoverExecutionOwners(ownershipDirectory);
175
175
  const command = imageCommand(config.image);
176
- config.resourceOwner = createExecutionOwner(ownershipDirectory, { repository: request.repository ?? env.GITHUB_REPOSITORY, runId: request.runId, workflowRunId: String(env.GITHUB_RUN_ID), attempt: Number(env.GITHUB_RUN_ATTEMPT) });
177
- await recoverExecutionWorkspaces(ownershipDirectory, { restoreOwnership: root => restoreWorkspaceOwnership(root, config) });
176
+ const ensureOwner = () => config.resourceOwner ??= createExecutionOwner(ownershipDirectory, { repository: request.repository ?? env.GITHUB_REPOSITORY, runId: request.runId, workflowRunId: String(env.GITHUB_RUN_ID), attempt: Number(env.GITHUB_RUN_ATTEMPT) });
177
+ await recoverExecutionWorkspaces(ownershipDirectory, { restoreOwnership: root => { ensureOwner(); restoreWorkspaceOwnership(root, config); } });
178
+ ensureOwner();
178
179
  dir = await config.resourceOwner.allocateWorkspace(env.RUNNER_TEMP);
179
180
  source = join(dir, 'source'); output = join(dir, 'output');
180
181
  await mkdir(source); await mkdir(output); await chmod(output, 0o777);