mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 17:50:07 +08:00
Convert from json to yaml for registries input
This commit is contained in:
@@ -1723,7 +1723,7 @@ export async function initConfig(
|
||||
|
||||
function parseRegistries(registriesInput: string | undefined) {
|
||||
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: ${
|
||||
|
||||
Reference in New Issue
Block a user