mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Change removal of credentials to adhere to no-vars-unused
This commit is contained in:
@@ -885,8 +885,8 @@ export function parseRegistriesWithoutCredentials(
|
||||
registriesInput?: string,
|
||||
): RegistryConfigNoCredentials[] | undefined {
|
||||
return parseRegistries(registriesInput)?.map((r) => {
|
||||
const { token: _, ...registryWithoutCredentials } = r;
|
||||
return registryWithoutCredentials;
|
||||
const { url, packages } = r;
|
||||
return { url, packages };
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user