mirror of
https://github.com/github/codeql-action.git
synced 2025-12-23 15:50:11 +08:00
Handle kind property in registries
This commit is contained in:
5
lib/config-utils.js
generated
5
lib/config-utils.js
generated
@@ -498,8 +498,8 @@ function parseRegistries(registriesInput) {
|
||||
}
|
||||
function parseRegistriesWithoutCredentials(registriesInput) {
|
||||
return parseRegistries(registriesInput)?.map((r) => {
|
||||
const { url, packages } = r;
|
||||
return { url, packages };
|
||||
const { url, packages, kind } = r;
|
||||
return { url, packages, kind };
|
||||
});
|
||||
}
|
||||
function isLocal(configPath) {
|
||||
@@ -623,6 +623,7 @@ function createRegistriesBlock(registries) {
|
||||
// ensure the url ends with a slash to avoid a bug in the CLI 2.10.4
|
||||
url: !registry?.url.endsWith("/") ? `${registry.url}/` : registry.url,
|
||||
packages: registry.packages,
|
||||
kind: registry.kind,
|
||||
}));
|
||||
const qlconfig = {
|
||||
registries: safeRegistries,
|
||||
|
||||
Reference in New Issue
Block a user