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
Usage: "Gitlab groups to scan for vulnerabilities (list argument which can be repeated)",
53
+
Name: urlFlag,
54
+
Usage: "Groups and projects to scan for vulnerabilities (list argument which can be repeated)",
62
55
Category: string(Scanning),
63
-
Action: validatePaths(groupPathRegex),
64
56
}),
65
57
altsrc.NewStringSliceFlag(&cli.StringSliceFlag{
66
-
Name: projectsFlag,
67
-
Usage: "Gitlab projects to scan for vulnerabilities (list argument which can be repeated)",
68
-
Category: string(Scanning),
69
-
Action: validatePaths(projectPathRegex),
70
-
}),
71
-
altsrc.NewBoolFlag(&cli.BoolFlag{
72
-
Name: testingFlag,
73
-
Usage: "Enable testing mode. This can enable features that are not safe for production use.",
74
-
Category: string(Miscellaneous),
75
-
Value: false,
76
-
}),
77
-
altsrc.NewStringFlag(&cli.StringFlag{
78
-
Name: reportSlackChannelFlag,
79
-
Usage: "Enable reporting to Slack through messages in the specified channel.",
58
+
Name: reportToEmailFlag,
59
+
Usage: "Enable reporting to the provided list of emails",
80
60
Category: string(Reporting),
81
61
}),
82
62
altsrc.NewBoolFlag(&cli.BoolFlag{
83
-
Name: reportSlackProjectChannelFlag,
84
-
Usage: "Enable reporting to Slack through messages in the specified project's channel. Requires a project-level configuration file specifying the channel.",
63
+
Name: reportToIssueFlag,
64
+
Usage: "Enable or disable reporting to the project's issue on the associated platform (gitlab, github, ...)",
85
65
Category: string(Reporting),
86
66
}),
87
-
altsrc.NewBoolFlag(&cli.BoolFlag{
88
-
Name: reportGitlabFlag,
89
-
Usage: "Enable reporting to GitLab through issue creation in projects affected by vulnerabilities.",
67
+
altsrc.NewStringFlag(&cli.StringFlag{
68
+
Name: reportToSlackChannel,
69
+
Usage: "Enable reporting to the provided slack channel",
90
70
Category: string(Reporting),
91
-
Value: false,
92
71
}),
93
72
altsrc.NewBoolFlag(&cli.BoolFlag{
94
-
Name: silentReport,
95
-
Usage: "Disable report output to stdout.",
73
+
Name: reportEnableProjectReportToFlag,
74
+
Usage: "Enable project-level configuration for '--report-to'.",
96
75
Category: string(Reporting),
97
-
Value: false,
76
+
Value: true,
98
77
}),
99
78
altsrc.NewBoolFlag(&cli.BoolFlag{
100
-
Name: publicSlackChannelFlag,
101
-
Usage: "Allow the slack report to be posted to a public channel. Note that reports may contain sensitive information which should not be disclosed on a public channel, for this reason this flag will only be enabled when combined with the testing flag.",
79
+
Name: silentReportFlag,
80
+
Usage: "Disable report output to stdout.",
102
81
Category: string(Reporting),
103
82
Value: false,
104
83
}),
@@ -121,10 +100,10 @@ var PatrolFlags = []cli.Flag{
121
100
funcPatrolAction(cCtx*cli.Context) error {
122
101
verbose:=cCtx.Bool(verboseFlag)
123
102
124
-
varpublicChannelsEnabledbool
125
-
ifcCtx.Bool(testingFlag) {
126
-
zerolog.Warn().Msg("Testing mode enabled. This may enable features that are not safe for production use.")
0 commit comments