mirror of
https://github.com/openai/codex-security.git
synced 2026-11-21 02:12:29 +08:00
* chore(deps): reduce the dependency tree for evals, SDK and tooling * docs(evals): explain how to enable optional Promptfoo peers
12 lines
446 B
TypeScript
12 lines
446 B
TypeScript
import { cleanupRuntime } from './runtime-cleanup.ts';
|
|
|
|
// GitHub exposes saved action state to the post entrypoint through STATE_ variables.
|
|
const root = process.env['STATE_runtime-root'];
|
|
const tempRoot = process.env['STATE_runtime-temp-root'];
|
|
if (root && tempRoot) {
|
|
void cleanupRuntime(root, tempRoot).catch(() => {
|
|
process.exitCode = 1;
|
|
process.stdout.write('::error::Codex Security temporary runtime cleanup failed.\n');
|
|
});
|
|
}
|