You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Run `socket manifest auto` before collecting manifest files. This is necessary for languages like Scala, Gradle, and Kotlin, See `socket manifest auto --help`.',
41
+
},
42
+
branch: {
43
+
type: 'string',
44
+
shortFlag: 'b',
45
+
description: 'Branch name',
46
+
},
47
+
commitHash: {
48
+
type: 'string',
49
+
shortFlag: 'ch',
50
+
default: '',
51
+
description: 'Commit hash',
52
+
},
53
+
commitMessage: {
54
+
type: 'string',
55
+
shortFlag: 'm',
56
+
default: '',
57
+
description: 'Commit message',
58
+
},
59
+
committers: {
60
+
type: 'string',
61
+
shortFlag: 'c',
62
+
default: '',
63
+
description: 'Committers',
64
+
},
65
+
cwd: {
66
+
type: 'string',
67
+
description: 'working directory, defaults to process.cwd()',
68
+
},
69
+
defaultBranch: {
70
+
type: 'boolean',
71
+
default: false,
72
+
description:
73
+
'Set the default branch of the repository to the branch of this full-scan. Should only need to be done once, for example for the "main" or "master" branch.',
74
+
},
75
+
interactive: {
76
+
type: 'boolean',
77
+
default: true,
78
+
description:
79
+
'Allow for interactive elements, asking for input. Use --no-interactive to prevent any input questions, defaulting them to cancel/no.',
80
+
},
81
+
pullRequest: {
82
+
type: 'number',
83
+
shortFlag: 'pr',
84
+
description: 'Commit hash',
85
+
},
86
+
org: {
87
+
type: 'string',
88
+
description:
89
+
'Force override the organization slug, overrides the default org from config',
90
+
},
91
+
reach: {
92
+
type: 'boolean',
93
+
default: false,
94
+
description: 'Run tier 1 full application reachability analysis',
95
+
},
96
+
readOnly: {
97
+
type: 'boolean',
98
+
default: false,
99
+
description:
100
+
'Similar to --dry-run except it can read from remote, stops before it would create an actual report',
101
+
},
102
+
repo: {
103
+
type: 'string',
104
+
shortFlag: 'r',
105
+
description: 'Repository name',
106
+
},
107
+
report: {
108
+
type: 'boolean',
109
+
description:
110
+
'Wait for the scan creation to complete, then basically run `socket scan report` on it',
111
+
},
112
+
setAsAlertsPage: {
113
+
type: 'boolean',
114
+
default: true,
115
+
aliases: ['pendingHead'],
116
+
description:
117
+
'When true and if this is the "default branch" then this Scan will be the one reflected on your alerts page. See help for details. Defaults to true.',
118
+
},
119
+
tmp: {
120
+
type: 'boolean',
121
+
shortFlag: 't',
122
+
default: false,
123
+
description:
124
+
'Set the visibility (true/false) of the scan in your dashboard.',
125
+
},
126
+
}
127
+
35
128
constconfig: CliCommandConfig={
36
129
commandName: 'create',
37
130
description: 'Create a new Socket scan and report',
38
131
hidden: false,
39
132
flags: {
40
-
...commonFlags,
41
-
...outputFlags,
42
-
autoManifest: {
43
-
type: 'boolean',
44
-
description:
45
-
'Run `socket manifest auto` before collecting manifest files. This is necessary for languages like Scala, Gradle, and Kotlin, See `socket manifest auto --help`.',
46
-
},
47
-
branch: {
48
-
type: 'string',
49
-
shortFlag: 'b',
50
-
description: 'Branch name',
51
-
},
52
-
commitMessage: {
53
-
type: 'string',
54
-
shortFlag: 'm',
55
-
default: '',
56
-
description: 'Commit message',
57
-
},
58
-
commitHash: {
59
-
type: 'string',
60
-
shortFlag: 'ch',
61
-
default: '',
62
-
description: 'Commit hash',
63
-
},
64
-
committers: {
65
-
type: 'string',
66
-
shortFlag: 'c',
67
-
default: '',
68
-
description: 'Committers',
69
-
},
70
-
cwd: {
71
-
type: 'string',
72
-
description: 'working directory, defaults to process.cwd()',
73
-
},
74
-
defaultBranch: {
75
-
type: 'boolean',
76
-
default: false,
77
-
description:
78
-
'Set the default branch of the repository to the branch of this full-scan. Should only need to be done once, for example for the "main" or "master" branch.',
79
-
},
80
-
interactive: {
81
-
type: 'boolean',
82
-
default: true,
83
-
description:
84
-
'Allow for interactive elements, asking for input. Use --no-interactive to prevent any input questions, defaulting them to cancel/no.',
85
-
},
86
-
pullRequest: {
87
-
type: 'number',
88
-
shortFlag: 'pr',
89
-
description: 'Commit hash',
90
-
},
91
-
org: {
92
-
type: 'string',
93
-
description:
94
-
'Force override the organization slug, overrides the default org from config',
95
-
},
96
-
reach: {
97
-
type: 'boolean',
98
-
default: false,
99
-
description: 'Run tier 1 full application reachability analysis',
100
-
},
101
-
readOnly: {
102
-
type: 'boolean',
103
-
default: false,
104
-
description:
105
-
'Similar to --dry-run except it can read from remote, stops before it would create an actual report',
106
-
},
107
-
repo: {
108
-
type: 'string',
109
-
shortFlag: 'r',
110
-
description: 'Repository name',
111
-
},
112
-
report: {
113
-
type: 'boolean',
114
-
description:
115
-
'Wait for the scan creation to complete, then basically run `socket scan report` on it',
116
-
},
117
-
setAsAlertsPage: {
118
-
type: 'boolean',
119
-
default: true,
120
-
aliases: ['pendingHead'],
121
-
description:
122
-
'When true and if this is the "default branch" then this Scan will be the one reflected on your alerts page. See help for details. Defaults to true.',
123
-
},
124
-
tmp: {
125
-
type: 'boolean',
126
-
shortFlag: 't',
127
-
default: false,
128
-
description:
129
-
'Set the visibility (true/false) of the scan in your dashboard.',
130
-
},
131
-
132
-
// Reachability scan flags
133
+
...generalFlags,
133
134
...reachabilityFlags,
134
135
},
135
136
// TODO: Your project's "socket.yml" file's "projectIgnorePaths".
0 commit comments