mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Add a new function used to determine where to retrieve config from
This commit is contained in:
8
lib/config-utils.js
generated
8
lib/config-utils.js
generated
@@ -219,6 +219,14 @@ function initConfig() {
|
||||
}
|
||||
return config;
|
||||
}
|
||||
function isLocal(configPath) {
|
||||
// If the path starts with ./, look locally
|
||||
if (configPath.indexOf("./") === 0) {
|
||||
return true;
|
||||
}
|
||||
return (configPath.indexOf("@") === -1);
|
||||
}
|
||||
exports.isLocal = isLocal;
|
||||
function getConfigFolder() {
|
||||
return util.getRequiredEnvParam('RUNNER_TEMP');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user