mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-08 07:47:13 +00:00
commit
4f7a1730db
3 changed files with 11 additions and 2 deletions
5
dist/post/index.js
vendored
5
dist/post/index.js
vendored
|
|
@ -61494,12 +61494,17 @@ var cleanup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _
|
|||
});
|
||||
console.log("Service log:");
|
||||
console.log(journalLog);
|
||||
}
|
||||
try {
|
||||
const cmd = "sudo";
|
||||
const args = ["cp", external_path_default().join(__dirname, "cache.txt"), cacheFile];
|
||||
external_child_process_.execFileSync(cmd, args);
|
||||
const cacheResult = yield cache.saveCache([cacheFile], cacheKey);
|
||||
console.log(cacheResult);
|
||||
}
|
||||
catch (exception) {
|
||||
console.log(exception);
|
||||
}
|
||||
}))();
|
||||
function sleep(ms) {
|
||||
return new Promise((resolve) => {
|
||||
|
|
|
|||
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -66,14 +66,18 @@ import path from "path";
|
|||
var journalLog = cp.execSync("sudo journalctl -u agent.service", {
|
||||
encoding: "utf8",
|
||||
});
|
||||
|
||||
console.log("Service log:");
|
||||
console.log(journalLog);
|
||||
|
||||
}
|
||||
try {
|
||||
const cmd = "sudo";
|
||||
const args = ["cp", path.join(__dirname, "cache.txt"), cacheFile];
|
||||
cp.execFileSync(cmd, args);
|
||||
const cacheResult = await cache.saveCache([cacheFile], cacheKey);
|
||||
console.log(cacheResult);
|
||||
} catch (exception) {
|
||||
console.log(exception);
|
||||
}
|
||||
})();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue