chore: Update grype bootstrap tools to latest versions. (#1187)

This commit is contained in:
anchore-actions-token-generator[bot] 2023-03-21 09:36:06 -04:00 committed by GitHub
parent b996cbe29b
commit 353bc87bb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View file

@ -10,11 +10,11 @@ CHRONICLE_CMD = $(TEMP_DIR)/chronicle
GLOW_CMD = $(TEMP_DIR)/glow
# Tool versions #################################
GOLANGCILINT_VERSION := v1.51.2
GOLANGCILINT_VERSION := v1.52.0
GOSIMPORTS_VERSION := v0.3.8
BOUNCER_VERSION := v0.4.0
CHRONICLE_VERSION := v0.6.0
GORELEASER_VERSION := v1.16.1
GORELEASER_VERSION := v1.16.2
YAJSV_VERSION := v1.4.1
QUILL_VERSION := v0.2.0
GLOW_VERSION := v1.5.0

View file

@ -67,7 +67,7 @@ func init() {
rootCmd.AddCommand(completionCmd)
}
func dockerImageValidArgsFunction(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
func dockerImageValidArgsFunction(_ *cobra.Command, _ []string, toComplete string) ([]string, cobra.ShellCompDirective) {
// Since we use ValidArgsFunction, Cobra will call this AFTER having parsed all flags and arguments provided
dockerImageRepoTags, err := listLocalDockerImages(toComplete)
if err != nil {

View file

@ -189,6 +189,7 @@ func setRootFlags(flags *pflag.FlagSet) {
)
}
//nolint:revive
func bindRootConfigOptions(flags *pflag.FlagSet) error {
if err := viper.BindPFlag("search.scope", flags.Lookup("scope")); err != nil {
return err

View file

@ -20,7 +20,7 @@ func (l logAdapter) LogMode(logger.LogLevel) logger.Interface {
return l
}
func (l logAdapter) Info(_ context.Context, fmt string, v ...interface{}) {
func (l logAdapter) Info(_ context.Context, _ string, _ ...interface{}) {
// unimplemented
}
@ -32,6 +32,6 @@ func (l logAdapter) Error(_ context.Context, fmt string, v ...interface{}) {
log.Errorf("gorm: "+fmt, v...)
}
func (l logAdapter) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
func (l logAdapter) Trace(_ context.Context, _ time.Time, _ func() (sql string, rowsAffected int64), _ error) {
// unimplemented
}