From 0ab1519fc2716416142e5734c93ed7a19d85b17d Mon Sep 17 00:00:00 2001 From: ray chen Date: Wed, 18 Dec 2024 22:12:32 +0000 Subject: [PATCH] Removed githubtoken parameter --- tools/spec-gen-sdk/src/cli/cli.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/spec-gen-sdk/src/cli/cli.ts b/tools/spec-gen-sdk/src/cli/cli.ts index aa68b0cb1d2..db84dbfb9c2 100644 --- a/tools/spec-gen-sdk/src/cli/cli.ts +++ b/tools/spec-gen-sdk/src/cli/cli.ts @@ -16,7 +16,6 @@ export type SpecGenSdkCliConfig = { env: string; workingFolder: string; isTriggeredByPipeline: boolean; - githubToken: string; localSpecRepoPath: string; localSdkRepoPath: string; tspConfigPath?: string; @@ -35,7 +34,6 @@ const initCliConfig = (argv) : SpecGenSdkCliConfig => { env: argv.env, workingFolder: argv.workingFolder, isTriggeredByPipeline: argv.isTriggeredByPipeline, - githubToken: argv.githubToken, localSpecRepoPath: argv.localSpecRepoPath, localSdkRepoPath: argv.localSdkRepoPath, tspConfigPath: argv.tspConfigRelativePath, @@ -134,10 +132,6 @@ yargs(hideBin(process.argv)) description: 'Flag to indicate if triggered by pipeline', default: false, }, - 'github-token': { - type: "string", - description: "The token to access the github repository", - }, 'tsp-config-relative-path': { type: "string", description: "Path to the tsp config file from the root folder of specification repository. Example: specification/contosowidgetmanager/Contoso.Management/tspconfig.yaml",