mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Introduce basic cli/output-cache.ts module
This commit is contained in:
17
src/cli/output-cache.ts
Normal file
17
src/cli/output-cache.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import path from "path";
|
||||
|
||||
import { getTemporaryDirectory } from "../actions-util";
|
||||
|
||||
/**
|
||||
* The name of the temporary file that backs the on-disk cache of
|
||||
* CLI responses between workflow steps.
|
||||
*/
|
||||
const COMMAND_CACHE_FILENAME = "codeql-action-command-cache.json";
|
||||
|
||||
/**
|
||||
* Returns the path to the temporary file that backs the
|
||||
* on-disk cache of CLI responses between workflow steps.
|
||||
*/
|
||||
function getCommandCacheFilePath(): string {
|
||||
return path.join(getTemporaryDirectory(), COMMAND_CACHE_FILENAME);
|
||||
}
|
||||
Reference in New Issue
Block a user