Documentation
¶
Index ¶
Constants ¶
View Source
const ( SecurityIssueFoundErr = "issues were detected by Frogbot\n" + "You can avoid marking the Frogbot scan as failed by setting failOnSecurityIssues to false in the " + utils.FrogbotConfigFile + " file or by setting the " + utils.FailOnSecurityIssuesEnv + " environment variable to false\n" + "Note that even if failOnSecurityIssues/" + utils.FailOnSecurityIssuesEnv + " are set to false, but a security violation with 'fail-pull-request' rule is found, Frogbot scan will fail as well" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanAllPullRequestsCmd ¶
type ScanAllPullRequestsCmd struct {
}
func (ScanAllPullRequestsCmd) Run ¶
func (cmd ScanAllPullRequestsCmd) Run(configAggregator utils.RepoAggregator, client vcsclient.VcsClient, frogbotRepoConnection *utils.UrlAccessChecker) error
type ScanPullRequestCmd ¶
type ScanPullRequestCmd struct{}
func (*ScanPullRequestCmd) Run ¶
func (cmd *ScanPullRequestCmd) Run(configAggregator utils.RepoAggregator, client vcsclient.VcsClient, frogbotRepoConnection *utils.UrlAccessChecker) (err error)
Run ScanPullRequest method only works for a single repository scan. Therefore, the first repository config represents the repository on which Frogbot runs, and it is the only one that matters.
Click to show internal directories.
Click to hide internal directories.