chore(deps): update bootstrap tools to latest versions (#1707)

This commit is contained in:
anchore-actions-token-generator[bot] 2024-02-14 13:56:09 +00:00 committed by GitHub
parent 63a5788cb2
commit 53279333ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 11 additions and 11 deletions

View file

@ -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

View file

@ -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()
})

View file

@ -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)

View file

@ -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)

View file

@ -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) {

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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 {

View file

@ -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]