mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 18:30:14 +00:00
Extract getGeneratedSuitePath()
This commit is contained in:
+12
@@ -513,6 +513,18 @@ export function getCodeQLDatabasePath(config: Config, language: Language) {
|
||||
return path.resolve(config.dbLocation, language);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the path where the generated query suite for the given language lives.
|
||||
*/
|
||||
export function getGeneratedSuitePath(config: Config, language: Language) {
|
||||
return path.resolve(
|
||||
config.dbLocation,
|
||||
language,
|
||||
"temp",
|
||||
"config-queries.qls",
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses user input of a github.com or GHES URL to a canonical form.
|
||||
* Removes any API prefix or suffix if one is present.
|
||||
|
||||
Reference in New Issue
Block a user