Skip to content

Commit

Permalink
Reduce verbosity of gosec in make pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
djjuhasz committed Sep 25, 2024
1 parent 182fb0e commit ef7c560
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ golines: $(GOLINES)
.

gosec: # @HELP Run gosec security scanner.
gosec: GOSEC_VERBOSITY ?= "-terse"
gosec: $(GOSEC)
gosec \
-terse \
$(GOSEC_VERBOSITY) \
-exclude-dir=dashboard \
-exclude-dir=hack \
-exclude-dir=internal/api/gen \
Expand Down Expand Up @@ -194,7 +195,7 @@ pre-commit: # @HELP Check that code is ready to commit.
pre-commit:
$(MAKE) -j \
golines \
gosec \
gosec GOSEC_VERBOSITY="-quiet"\
lint \
mod-tidy \
shfmt \
Expand Down

0 comments on commit ef7c560

Please sign in to comment.