Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerscan panic #1290

Closed
wants to merge 110 commits into from
Closed
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
4d20901
Upgrade jfrog-cli-core to 2.31.1 (#739)
omerzi Apr 5, 2023
9b4006e
Added the Frogbot badge to the README (#745)
eyalbe4 Apr 13, 2023
1381a8b
Merge remote-tracking branch 'upstream/dev' into mastercore
sverdlov93 Apr 19, 2023
f8e3a22
Merge remote-tracking branch 'upstream/dev' into mastercore
sverdlov93 Apr 19, 2023
4f7259c
Merge remote-tracking branch 'origin/dev'
omerzi May 2, 2023
932793d
Merge remote-tracking branch 'origin/dev'
omerzi May 3, 2023
2ddeac0
Merge branch 'dev'
eyalbe4 May 16, 2023
11ce1e8
Merge branch 'dev' into master
talarian1 May 17, 2023
521d832
Merge branch 'dev'
talarian1 May 17, 2023
f470da2
Merge remote-tracking branch 'origin/dev'
talarian1 May 17, 2023
2c85766
Merge remote-tracking branch 'origin/dev'
omerzi May 21, 2023
ae0b91d
Merge remote-tracking branch 'origin/dev'
talarian1 May 23, 2023
5a53932
Merge remote-tracking branch 'upstream/dev'
yahavi May 23, 2023
c07d9fb
Merge remote-tracking branch 'upstream/dev'
yahavi May 23, 2023
7040b6a
Merge remote-tracking branch 'origin/dev'
talarian1 May 24, 2023
e91d430
Merge branch 'dev'
eyalbe4 May 26, 2023
2680fdb
Upgrade jfrog-cli-core to 2.34.6
talarian1 May 28, 2023
b4ddac8
Merge branch 'master' into dev
eyalbe4 May 31, 2023
6dca5e7
Merge branch 'dev'
eyalbe4 May 31, 2023
9fa7b09
Merge remote-tracking branch 'origin/dev'
talarian1 May 31, 2023
a46fb01
Merge branch 'dev'
yahavi Jun 1, 2023
94469f4
Merge branch 'dev'
eyalbe4 Jun 4, 2023
b330d82
Merge branch 'dev'
eyalbe4 Jun 10, 2023
7141b4c
Merge branch 'master' into dev
omerzi Jun 27, 2023
ec17933
Merge branch 'dev'
eyalbe4 Jun 27, 2023
83ced5a
Merge branch 'dev'
RobiNino Jun 29, 2023
9e57a49
Merge branch 'dev'
yahavi Jul 4, 2023
fe4c82a
Merge branch 'master' into dev
omerzi Jul 12, 2023
47a0f3f
Upgrade jfrog-cli-core to 2.38.0
omerzi Jul 12, 2023
40e7d2d
Remove Secrets Scanner Sacanners Names config (#862)
talarian1 Jul 16, 2023
0be3aae
Upgrade jfrog-cli-core to 2.39.0
omerzi Jul 18, 2023
0a4b112
Merge remote-tracking branch 'origin/dev'
omerzi Jul 19, 2023
64ee611
Merge remote-tracking branch 'origin/dev'
omerzi Jul 19, 2023
d32579e
Merge remote-tracking branch 'origin/dev'
omerzi Jul 23, 2023
f79600c
Merge branch 'dev'
eyalbe4 Jul 31, 2023
db385fe
Merge branch 'dev'
eyalbe4 Aug 3, 2023
7f8edc8
Merge remote-tracking branch 'origin/dev'
omerzi Aug 15, 2023
85f562e
Merge branch 'dev'
eyalbe4 Aug 23, 2023
0b5d33b
Merge remote-tracking branch 'origin/dev'
omerzi Aug 24, 2023
ab61366
Merge branch 'dev'
eyalbe4 Aug 25, 2023
b41d4f0
Merge branch 'dev'
attiasas Aug 28, 2023
a02bfdf
Merge branch 'dev'
attiasas Aug 28, 2023
4bc9682
Merge branch 'dev'
eyalbe4 Sep 11, 2023
0a13b66
Merge remote-tracking branch 'upstream/dev'
sverdlov93 Sep 12, 2023
bab627c
Merge branch 'master' of https://github.com/jfrog/jfrog-cli-core
sverdlov93 Sep 12, 2023
3042a43
Merge remote-tracking branch 'upstream/dev'
sverdlov93 Sep 12, 2023
6b129f1
Merge remote-tracking branch 'upstream/dev' (#955)
attiasas Sep 13, 2023
6acb9a2
Merge branch 'dev'
EyalDelarea Sep 13, 2023
be4499c
Merge branch 'dev'
RobiNino Sep 14, 2023
202e914
Merge remote-tracking branch 'origin/dev'
omerzi Sep 19, 2023
b39fdf4
Merge remote-tracking branch 'upstream/dev'
sverdlov93 Sep 19, 2023
c1bb6cf
Merge remote-tracking branch 'jfrog-prod/dev'
eranturgeman Oct 3, 2023
fc0ae72
Merge branch 'dev'
yahavi Oct 4, 2023
bf7f0ce
Merge branch 'dev'
EyalDelarea Oct 5, 2023
f513574
Merge remote-tracking branch 'origin/dev'
yahavi Oct 11, 2023
597ddcd
Upgrade jfrog-cli-core to 2.45.1
yahavi Oct 11, 2023
b922413
Upgrade jfrog-cli-core to 2.45.2
omerzi Oct 17, 2023
f5d0ad0
Merge remote-tracking branch 'origin/dev'
yahavi Oct 18, 2023
45beee8
Upgrade jfrog-cli-core to 2.45.3
yahavi Oct 18, 2023
8eb1c37
Merge remote-tracking branch 'upstream/dev'
yahavi Oct 22, 2023
9161487
Merge remote-tracking branch 'origin/dev'
attiasas Nov 8, 2023
dca01d2
Promote version to 2.46.1
omerzi Nov 9, 2023
82fecb0
Promote version to 2.46.2
omerzi Nov 16, 2023
d4e93a4
Merge remote-tracking branch 'upstream/dev'
yahavi Nov 30, 2023
8a8a5de
Merge remote-tracking branch 'origin/master' into dev
omerzi Dec 3, 2023
dfb6e8c
Merge remote-tracking branch 'origin/dev'
omerzi Dec 3, 2023
9b44d66
Merge remote-tracking branch 'origin' into dev
Or-Geva Dec 11, 2023
4c57380
Merge branch 'dev'
eyalbe4 Dec 15, 2023
931eb29
Merge branch 'dev'
eyalbe4 Dec 18, 2023
b25e685
Merge remote-tracking branch 'origin/dev'
omerzi Dec 19, 2023
c825598
Merge branch 'dev'
eyalbe4 Dec 21, 2023
4f4127c
Merge branch 'dev'
eyalbe4 Dec 25, 2023
c6fd4b1
Upgrade jfrog-cli-core to v2.47.9
omerzi Dec 27, 2023
39b06f7
Promote version to v2.47.10
omerzi Jan 7, 2024
8129e67
Merge branch 'dev'
eyalbe4 Jan 23, 2024
5e828b6
Upgrade jfrog-cli-core to 2.47.12 (#1119)
eranturgeman Jan 25, 2024
e481028
Merge remote-tracking branch 'origin/dev'
yahavi Feb 20, 2024
6d62ade
Merge remote-tracking branch 'origin/dev'
yahavi Feb 21, 2024
c333812
Merge branch 'master' into dev
RobiNino Mar 18, 2024
def18c5
Promoted version to 2.49.0
RobiNino Mar 18, 2024
a063de8
Merge remote-tracking branch 'upstream/dev'
sverdlov93 Mar 28, 2024
670986e
Merge remote-tracking branch 'upstream/dev'
EyalDelarea Apr 15, 2024
9f2f331
Merge branch 'master' into dev
yahavi May 9, 2024
102e9bb
Upgrade jfrog-cli-core to 2.52.0
yahavi May 9, 2024
bf51565
Merge branch 'dev'
EyalDelarea May 22, 2024
0e5f28c
Upgrade jfrog-cli-core to 2.53.0
EyalDelarea May 22, 2024
a291658
Merge branch 'dev'
eyalbe4 Jun 10, 2024
5396c66
Merge branch 'dev'
RobiNino Jun 27, 2024
0a8f806
Merge remote-tracking branch 'upstream/dev'
yahavi Jul 21, 2024
de2c4bf
Merge branch 'dev'
eyalbe4 Jul 23, 2024
ee2d82d
Merge branch 'dev'
RobiNino Jul 31, 2024
5ce9dde
Merge branch 'dev'
RobiNino Aug 5, 2024
f6e9b75
Merge branch 'dev'
RobiNino Aug 6, 2024
7c6d44b
Merge branch 'dev'
eyalbe4 Aug 14, 2024
2f1cbb7
Merge remote-tracking branch 'upstream/dev'
sverdlov93 Aug 14, 2024
99fd0f6
Merge branch 'dev'
eyalbe4 Aug 20, 2024
dbdb1c4
Rename env var (#1239)
eyalbe4 Aug 21, 2024
97c0713
Promote to v2.55.4 (#1247)
eyalbe4 Aug 26, 2024
1729e8e
Update go.mod and go.sum with latest version of jfrog-client-go (#1250)
Or-Geva Aug 28, 2024
5af5855
Add missing priorityResolution and cdnRedirect to repository template…
sverdlov93 Aug 28, 2024
f62dd0c
Upgrade jfrog-cli-core to 2.55.5 (#1251)
RobiNino Aug 29, 2024
233f8ab
Resolve conflicts
eyalbe4 Aug 29, 2024
f029a88
Merge branch 'master' into dev
RobiNino Sep 4, 2024
fe73fb2
Merge branch 'dev'
eyalbe4 Sep 19, 2024
e7ec399
Merge branch 'dev'
eyalbe4 Sep 23, 2024
b10c622
Merge branch 'dev'
eyalbe4 Sep 30, 2024
ef9f339
Merge branch 'dev'
eyalbe4 Oct 10, 2024
af607d1
Merge branch 'dev'
eyalbe4 Oct 23, 2024
77efcf8
fix dockerscan panic and a typo in usage
dortam888 Nov 2, 2024
06d986a
Merge branch 'dev' into dockerscan_panic
dortam888 Nov 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions plugins/components/conversionlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/jfrog/gofrog/datastructures"
"github.com/jfrog/jfrog-cli-core/v2/docs/common"
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
"github.com/jfrog/jfrog-client-go/utils/errorutils"
"github.com/urfave/cli"
)
Expand Down Expand Up @@ -80,7 +79,8 @@ func convertCommand(cmd Command, namespaces ...string) (cli.Command, error) {
if err != nil {
return cli.Command{}, err
}
return cli.Command{

cliCmd := cli.Command{
Name: cmd.Name,
Flags: convertedFlags,
Aliases: cmd.Aliases,
Expand All @@ -93,9 +93,14 @@ func convertCommand(cmd Command, namespaces ...string) (cli.Command, error) {
BashComplete: common.CreateBashCompletionFunc(),
SkipFlagParsing: cmd.SkipFlagParsing,
Hidden: cmd.Hidden,
}

if cmd.Action != nil {
// Passing any other interface than 'cli.ActionFunc' will fail the command.
Action: getActionFunc(cmd),
}, nil
cliCmd.Action = getActionFunc(cmd)
}

return cliCmd, nil
}

func removeEmptyValues(slice []string) []string {
Expand All @@ -112,8 +117,8 @@ func removeEmptyValues(slice []string) []string {
func createCommandUsages(cmd Command, convertedStringFlags map[string]StringFlag, namespaces ...string) (usages []string, err error) {
// Handle manual usages provided.
if cmd.UsageOptions != nil {
for _, manualUsage := range cmd.UsageOptions.Usage {
usages = append(usages, fmt.Sprintf("%s %s", coreutils.GetCliExecutableName(), manualUsage))
if cmd.UsageOptions.Usage != nil {
usages = append(usages, cmd.UsageOptions.Usage...)
}
if cmd.UsageOptions.ReplaceAutoGeneratedUsage {
return
Expand Down
Loading