@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 +1 -1
- package/src/opencode-execute.mjs +3 -2
package/package.json
CHANGED
package/src/opencode-execute.mjs
CHANGED
|
@@ -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
|
|
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);
|