Add tests for generateRegistries with an existing CODEQL_REGISTRIES_AUTH

This commit is contained in:
Andrew Eisenberg 2023-02-09 12:58:15 -08:00
parent 3c81243bb1
commit 5492b7d104
8 changed files with 58 additions and 10 deletions

2
lib/config-utils.js generated
View file

@ -1119,7 +1119,7 @@ async function generateRegistries(registriesInput, codeQL, tempDir, logger) {
return {
registriesAuthTokens:
// if the user has explicitly set the CODEQL_REGISTRIES_AUTH env var then use that
process.env["CODEQL_REGISTRIES_AUTH"] ?? registriesAuthTokens,
process.env.CODEQL_REGISTRIES_AUTH ?? registriesAuthTokens,
qlconfigFile,
};
}