Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
JFrog Pipelines Step committed Apr 4, 2023
2 parents a7d8312 + c29ce93 commit f157f13
Show file tree
Hide file tree
Showing 16 changed files with 605 additions and 239 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: ${{github.event_name != 'push' }} && runner.os == 'Linux'
with:
labels: 'safe to test'

# Configure prerequisites
- uses: actions/checkout@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func GetCommands() []*clitool.Command {
Aliases: []string{"spr"},
Usage: "Scans a pull request with JFrog Xray for security vulnerabilities.",
Action: func(ctx *clitool.Context) error {
return Exec(ScanPullRequestCmd{}, ctx.Command.Name)
return Exec(&ScanPullRequestCmd{}, ctx.Command.Name)
},
Flags: []clitool.Flag{},
},
Expand All @@ -50,7 +50,7 @@ func GetCommands() []*clitool.Command {
Aliases: []string{"cfpr"},
Usage: "Scan the current branch and create pull requests with fixes if needed",
Action: func(ctx *clitool.Context) error {
return Exec(CreateFixPullRequestsCmd{}, ctx.Command.Name)
return Exec(&CreateFixPullRequestsCmd{}, ctx.Command.Name)
},
Flags: []clitool.Flag{},
},
Expand All @@ -59,7 +59,7 @@ func GetCommands() []*clitool.Command {
Aliases: []string{"sprs"},
Usage: "Scans all the open pull requests within a single or multiple repositories with JFrog Xray for security vulnerabilities",
Action: func(ctx *clitool.Context) error {
return Exec(ScanAllPullRequestsCmd{}, ctx.Command.Name)
return Exec(&ScanAllPullRequestsCmd{}, ctx.Command.Name)
},
Flags: []clitool.Flag{},
},
Expand All @@ -68,7 +68,7 @@ func GetCommands() []*clitool.Command {
Aliases: []string{"safr"},
Usage: "Scan single or multiple repositories and create pull requests with fixes if any security vulnerabilities are found",
Action: func(ctx *clitool.Context) error {
return Exec(ScanAndFixRepositories{}, ctx.Command.Name)
return Exec(&ScanAndFixRepositories{}, ctx.Command.Name)
},
Flags: []clitool.Flag{},
},
Expand Down
Loading

0 comments on commit f157f13

Please sign in to comment.