mirror of
https://github.com/github/codeql-action.git
synced 2026-01-02 04:30:14 +08:00
Add a new function used to determine where to retrieve config from
This commit is contained in:
@@ -250,6 +250,15 @@ function initConfig(): Config {
|
||||
return config;
|
||||
}
|
||||
|
||||
export function isLocal(configPath: string): boolean {
|
||||
// If the path starts with ./, look locally
|
||||
if (configPath.indexOf("./") === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return (configPath.indexOf("@") === -1);
|
||||
}
|
||||
|
||||
function getConfigFolder(): string {
|
||||
return util.getRequiredEnvParam('RUNNER_TEMP');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user