mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
chore(deps): update bootstrap tools to latest versions (#1707)
This commit is contained in:
parent
63a5788cb2
commit
53279333ee
11 changed files with 11 additions and 11 deletions
2
Makefile
2
Makefile
|
@ -10,7 +10,7 @@ CHRONICLE_CMD = $(TEMP_DIR)/chronicle
|
|||
GLOW_CMD = $(TEMP_DIR)/glow
|
||||
|
||||
# Tool versions #################################
|
||||
GOLANGCILINT_VERSION := v1.56.0
|
||||
GOLANGCILINT_VERSION := v1.56.1
|
||||
GOSIMPORTS_VERSION := v0.3.8
|
||||
BOUNCER_VERSION := v0.4.0
|
||||
CHRONICLE_VERSION := v0.8.0
|
||||
|
|
|
@ -68,7 +68,7 @@ func create(id clio.Identification) (clio.Application, *cobra.Command) {
|
|||
return nil
|
||||
},
|
||||
).
|
||||
WithPostRuns(func(state *clio.State, err error) {
|
||||
WithPostRuns(func(_ *clio.State, _ error) {
|
||||
stereoscope.Cleanup()
|
||||
})
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ func DBCheck(app clio.Application) *cobra.Command {
|
|||
Use: "check",
|
||||
Short: "check to see if there is a database update available",
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(_ *cobra.Command, _ []string) error {
|
||||
return runDBCheck(opts.DB)
|
||||
},
|
||||
}, opts)
|
||||
|
|
|
@ -17,7 +17,7 @@ func DBDelete(app clio.Application) *cobra.Command {
|
|||
Use: "delete",
|
||||
Short: "delete the vulnerability database",
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(_ *cobra.Command, _ []string) error {
|
||||
return runDBDelete(opts.DB)
|
||||
},
|
||||
}, opts)
|
||||
|
|
|
@ -37,7 +37,7 @@ func DBDiff(app clio.Application) *cobra.Command {
|
|||
Use: "diff [flags] base_db_url target_db_url",
|
||||
Short: "diff two DBs and display the result",
|
||||
Args: cobra.MaximumNArgs(2),
|
||||
RunE: func(cmd *cobra.Command, args []string) (err error) {
|
||||
RunE: func(_ *cobra.Command, args []string) (err error) {
|
||||
var base, target string
|
||||
|
||||
switch len(args) {
|
||||
|
|
|
@ -19,7 +19,7 @@ func DBImport(app clio.Application) *cobra.Command {
|
|||
Short: "import a vulnerability database archive",
|
||||
Long: fmt.Sprintf("import a vulnerability database archive from a local FILE.\nDB archives can be obtained from %q.", internal.DBUpdateURL),
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(_ *cobra.Command, args []string) error {
|
||||
return runDBImport(opts.DB, args[0])
|
||||
},
|
||||
}, opts)
|
||||
|
|
|
@ -32,7 +32,7 @@ func DBList(app clio.Application) *cobra.Command {
|
|||
Use: "list",
|
||||
Short: "list all DBs available according to the listing URL",
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(_ *cobra.Command, _ []string) error {
|
||||
return runDBList(opts)
|
||||
},
|
||||
}, opts)
|
||||
|
|
|
@ -17,7 +17,7 @@ func DBStatus(app clio.Application) *cobra.Command {
|
|||
Use: "status",
|
||||
Short: "display database status",
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(_ *cobra.Command, _ []string) error {
|
||||
return runDBStatus(opts.DB)
|
||||
},
|
||||
}, opts)
|
||||
|
|
|
@ -19,7 +19,7 @@ func DBUpdate(app clio.Application) *cobra.Command {
|
|||
Use: "update",
|
||||
Short: "download the latest vulnerability database",
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(_ *cobra.Command, _ []string) error {
|
||||
return runDBUpdate(opts.DB)
|
||||
},
|
||||
}, opts)
|
||||
|
|
|
@ -30,7 +30,7 @@ func Explain(app clio.Application) *cobra.Command {
|
|||
return app.SetupCommand(&cobra.Command{
|
||||
Use: "explain --id [VULNERABILITY ID]",
|
||||
Short: "Ask grype to explain a set of findings",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(_ *cobra.Command, _ []string) error {
|
||||
log.Warn("grype explain is a prototype feature and is subject to change")
|
||||
isStdinPipeOrRedirect, err := internal.IsStdinPipeOrRedirect()
|
||||
if err != nil {
|
||||
|
|
|
@ -73,7 +73,7 @@ You can also pipe in Syft JSON directly:
|
|||
Args: validateRootArgs,
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(_ *cobra.Command, args []string) error {
|
||||
userInput := ""
|
||||
if len(args) > 0 {
|
||||
userInput = args[0]
|
||||
|
|
Loading…
Reference in a new issue