Skip to content

Commit f157f13

Browse files
author
JFrog Pipelines Step
committed
Merge remote-tracking branch 'origin/dev'
2 parents a7d8312 + c29ce93 commit f157f13

16 files changed

+605
-239
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if: ${{github.event_name != 'push' }} && runner.os == 'Linux'
2121
with:
2222
labels: 'safe to test'
23-
23+
2424
# Configure prerequisites
2525
- uses: actions/checkout@v3
2626
with:

commands/commands.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func GetCommands() []*clitool.Command {
4141
Aliases: []string{"spr"},
4242
Usage: "Scans a pull request with JFrog Xray for security vulnerabilities.",
4343
Action: func(ctx *clitool.Context) error {
44-
return Exec(ScanPullRequestCmd{}, ctx.Command.Name)
44+
return Exec(&ScanPullRequestCmd{}, ctx.Command.Name)
4545
},
4646
Flags: []clitool.Flag{},
4747
},
@@ -50,7 +50,7 @@ func GetCommands() []*clitool.Command {
5050
Aliases: []string{"cfpr"},
5151
Usage: "Scan the current branch and create pull requests with fixes if needed",
5252
Action: func(ctx *clitool.Context) error {
53-
return Exec(CreateFixPullRequestsCmd{}, ctx.Command.Name)
53+
return Exec(&CreateFixPullRequestsCmd{}, ctx.Command.Name)
5454
},
5555
Flags: []clitool.Flag{},
5656
},
@@ -59,7 +59,7 @@ func GetCommands() []*clitool.Command {
5959
Aliases: []string{"sprs"},
6060
Usage: "Scans all the open pull requests within a single or multiple repositories with JFrog Xray for security vulnerabilities",
6161
Action: func(ctx *clitool.Context) error {
62-
return Exec(ScanAllPullRequestsCmd{}, ctx.Command.Name)
62+
return Exec(&ScanAllPullRequestsCmd{}, ctx.Command.Name)
6363
},
6464
Flags: []clitool.Flag{},
6565
},
@@ -68,7 +68,7 @@ func GetCommands() []*clitool.Command {
6868
Aliases: []string{"safr"},
6969
Usage: "Scan single or multiple repositories and create pull requests with fixes if any security vulnerabilities are found",
7070
Action: func(ctx *clitool.Context) error {
71-
return Exec(ScanAndFixRepositories{}, ctx.Command.Name)
71+
return Exec(&ScanAndFixRepositories{}, ctx.Command.Name)
7272
},
7373
Flags: []clitool.Flag{},
7474
},

0 commit comments

Comments
 (0)