Skip to content

Commit cba8dc6

Browse files
committed
Cleanup scan github
1 parent 4002df2 commit cba8dc6

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/commands/scan/cmd-scan-github.mts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ const config: CliCommandConfig = {
2929
all: {
3030
type: 'boolean',
3131
description:
32-
'Apply for all known repos reported by the Socket API. Supersedes `repos`.',
32+
'Apply for all known repositories reported by the Socket API. Supersedes `repos`.',
3333
},
3434
githubToken: {
3535
type: 'string',
3636
description:
37-
'(required) GitHub token for authentication (or set GITHUB_TOKEN as an environment variable)',
37+
'Required GitHub token for authentication.\nMay set environment variable GITHUB_TOKEN or SOCKET_CLI_GITHUB_TOKEN instead.',
3838
},
3939
githubApiUrl: {
4040
type: 'string',
@@ -139,16 +139,11 @@ async function run(
139139
// If given path is absolute then cwd should not affect it.
140140
cwd = path.resolve(process.cwd(), cwd)
141141

142-
let [orgSlug, defaultOrgSlug] = await determineOrgSlug(
142+
let [orgSlug] = await determineOrgSlug(
143143
String(orgFlag || ''),
144144
interactive,
145145
dryRun,
146146
)
147-
if (!defaultOrgSlug) {
148-
// Tmp. just for TS. will drop this later.
149-
defaultOrgSlug = ''
150-
}
151-
152147
const sockJson = await readOrDefaultSocketJson(cwd)
153148

154149
if (all === undefined) {

0 commit comments

Comments
 (0)