mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 22:50:17 +08:00
Convert from json to yaml for registries input
This commit is contained in:
2
lib/config-utils.js
generated
2
lib/config-utils.js
generated
@@ -919,7 +919,7 @@ async function initConfig(languagesInput, queriesInput, packsInput, registriesIn
|
||||
exports.initConfig = initConfig;
|
||||
function parseRegistries(registriesInput) {
|
||||
try {
|
||||
return registriesInput ? JSON.parse(registriesInput) : undefined;
|
||||
return registriesInput ? yaml.l(registriesInput) : undefined;
|
||||
}
|
||||
catch (e) {
|
||||
throw new Error(`Invalid registries input. Must be a JSON string, but got: ${e instanceof Error ? e.message : String(e)}`);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user