@@ -13,15 +13,13 @@ import (
1313 "github.com/jfrog/frogbot/v2/scanpullrequest"
1414 "github.com/jfrog/frogbot/v2/scanrepository"
1515 "github.com/jfrog/frogbot/v2/utils"
16- "github.com/jfrog/frogbot/v2/utils/outputwriter"
17-
1816 "github.com/jfrog/jfrog-cli-security/utils/xsc"
1917 clitool "github.com/urfave/cli/v2"
2018)
2119
2220type FrogbotCommand interface {
2321 // Run the command
24- Run (config utils.Repository , client vcsclient.VcsClient , frogbotRepoConnection * utils. UrlAccessChecker ) error
22+ Run (config utils.Repository , client vcsclient.VcsClient ) error
2523}
2624
2725func GetCommands () []* clitool.Command {
@@ -54,8 +52,6 @@ func Exec(command FrogbotCommand, commandName string) (err error) {
5452 if err != nil {
5553 return err
5654 }
57- // Check if the user has access to the frogbot repository (to access the resources needed)
58- frogbotRepoConnection := utils .CheckConnection (outputwriter .FrogbotRepoUrl )
5955
6056 // Build the server configuration file
6157 originalJfrogHomeDir , tempJFrogHomeDir , err := utils .BuildServerConfigFile (frogbotDetails .ServerDetails )
@@ -79,7 +75,7 @@ func Exec(command FrogbotCommand, commandName string) (err error) {
7975
8076 // Invoke the command interface
8177 log .Info (fmt .Sprintf ("Running Frogbot %q command" , commandName ))
82- err = command .Run (frogbotDetails .Repository , frogbotDetails .GitClient , frogbotRepoConnection )
78+ err = command .Run (frogbotDetails .Repository , frogbotDetails .GitClient )
8379
8480 if err != nil {
8581 if reportError := xsc .ReportError (frogbotDetails .XrayVersion , frogbotDetails .XscVersion , frogbotDetails .ServerDetails , err , "frogbot" , frogbotDetails .Repository .JFrogProjectKey ); reportError != nil {
0 commit comments