@@ -41,7 +41,7 @@ func GetCommands() []*clitool.Command {
41
41
Aliases : []string {"spr" },
42
42
Usage : "Scans a pull request with JFrog Xray for security vulnerabilities." ,
43
43
Action : func (ctx * clitool.Context ) error {
44
- return Exec (ScanPullRequestCmd {}, ctx .Command .Name )
44
+ return Exec (& ScanPullRequestCmd {}, ctx .Command .Name )
45
45
},
46
46
Flags : []clitool.Flag {},
47
47
},
@@ -50,7 +50,7 @@ func GetCommands() []*clitool.Command {
50
50
Aliases : []string {"cfpr" },
51
51
Usage : "Scan the current branch and create pull requests with fixes if needed" ,
52
52
Action : func (ctx * clitool.Context ) error {
53
- return Exec (CreateFixPullRequestsCmd {}, ctx .Command .Name )
53
+ return Exec (& CreateFixPullRequestsCmd {}, ctx .Command .Name )
54
54
},
55
55
Flags : []clitool.Flag {},
56
56
},
@@ -59,7 +59,7 @@ func GetCommands() []*clitool.Command {
59
59
Aliases : []string {"sprs" },
60
60
Usage : "Scans all the open pull requests within a single or multiple repositories with JFrog Xray for security vulnerabilities" ,
61
61
Action : func (ctx * clitool.Context ) error {
62
- return Exec (ScanAllPullRequestsCmd {}, ctx .Command .Name )
62
+ return Exec (& ScanAllPullRequestsCmd {}, ctx .Command .Name )
63
63
},
64
64
Flags : []clitool.Flag {},
65
65
},
@@ -68,7 +68,7 @@ func GetCommands() []*clitool.Command {
68
68
Aliases : []string {"safr" },
69
69
Usage : "Scan single or multiple repositories and create pull requests with fixes if any security vulnerabilities are found" ,
70
70
Action : func (ctx * clitool.Context ) error {
71
- return Exec (ScanAndFixRepositories {}, ctx .Command .Name )
71
+ return Exec (& ScanAndFixRepositories {}, ctx .Command .Name )
72
72
},
73
73
Flags : []clitool.Flag {},
74
74
},
0 commit comments