Files
codex-security/github-action/src/post.ts
T
mldangelo-oai f82ae5be89 fix: simplify action cleanup and stabilize provider isolation tests (#1421)
* fix: simplify action cleanup and resolve code quality warnings

* test: remove repeated native startup from provider isolation checks
2026-10-07 22:42:38 -04:00

12 lines
446 B
TypeScript

import { cleanupRuntime } from './runtime-cleanup.js';
// 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');
});
}