Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #395 from github/aeisenberg/remove-external-token
Remove --external-repository-token option from runner
Aditya Sharad authored and GitHub committed Feb 16, 2021

Unverified

No user is associated with the committer email.
2 parents 88714e3 + 58defc0 commit 0ab754c
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions lib/runner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/runner.js.map
2 changes: 1 addition & 1 deletion src/api-client.ts
@@ -20,7 +20,7 @@ export interface GitHubApiDetails {
}

export interface GitHubApiExternalRepoDetails {
externalRepoAuth: string | undefined;
externalRepoAuth?: string;
url: string;
}

6 changes: 0 additions & 6 deletions src/runner.ts
@@ -98,7 +98,6 @@ interface InitArgs {
githubUrl: string;
githubAuth: string;
githubAuthStdin: boolean;
externalRepositoryToken: string | undefined;
debug: boolean;
}

@@ -115,10 +114,6 @@ program
"--github-auth-stdin",
"Read GitHub Apps token or personal access token from stdin."
)
.option(
"--external-repository-token <token>",
"A token for fetching external config files and queries if they reside in a private repository."
)
.option(
"--languages <languages>",
"Comma-separated list of languages to analyze. Otherwise detects and analyzes all supported languages from the repo."
@@ -167,7 +162,6 @@ program

const apiDetails = {
auth,
externalRepoAuth: cmd.externalRepositoryToken,
url: parseGithubUrl(cmd.githubUrl),
};

0 comments on commit 0ab754c

Please sign in to comment.