cli: Fix github auth not including environment key
Signed-off-by: Marcus Eide <eide@spotify.com>
This commit is contained in:
committed by
Philipp Hugenroth
parent
184602db0a
commit
d9893cb794
@@ -75,8 +75,9 @@ export async function command(): Promise<void> {
|
||||
await updateEnvFile({
|
||||
auth: config.auth,
|
||||
});
|
||||
config.auth.providers.github.clientId = '${AUTH_GITHUB_CLIENT_ID}';
|
||||
config.auth.providers.github.clientSecret =
|
||||
config.auth.providers.github.development.clientId =
|
||||
'${AUTH_GITHUB_CLIENT_ID}';
|
||||
config.auth.providers.github.development.clientSecret =
|
||||
'${AUTH_GITHUB_CLIENT_SECRET}';
|
||||
await updateConfigFile({
|
||||
auth: config.auth,
|
||||
|
||||
@@ -63,8 +63,10 @@ export async function adminCli(org: string) {
|
||||
const auth = {
|
||||
providers: {
|
||||
github: {
|
||||
clientId: config.clientId,
|
||||
clientSecret: config.clientSecret,
|
||||
development: {
|
||||
clientId: config.clientId,
|
||||
clientSecret: config.clientSecret,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user