Skip to content

Commit

Permalink
add gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Nov 4, 2024
1 parent 8fe3cb3 commit 51aa327
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
run-unit-tests: true
run-integration-tests: true
run-lint: true
run-gosec: true
gosec-args: "-exclude-generated -exclude-dir=e2etest -exclude-dir=testutil ./..."
install-dependencies-command: |
sudo apt-get update
sudo apt-get install -y libzmq3-dev
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
run-unit-tests: true
run-integration-tests: true
run-lint: true
run-gosec: true
gosec-args: "-exclude-generated -exclude-dir=e2etest -exclude-dir=testutil ./..."
install-dependencies-command: |
sudo apt-get update
sudo apt-get install -y libzmq3-dev
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ proto-gen:
.PHONY: proto-gen


###############################################################################
### Gosec ###
###############################################################################

gosec-local: ## Run local security checks
gosec -exclude-generated -exclude-dir=$(CURDIR)/testutil -exclude-dir=$(CURDIR)/e2etest $(CURDIR)/...

.PHONY: gosec-local

###############################################################################
### Release ###
###############################################################################
Expand Down

0 comments on commit 51aa327

Please sign in to comment.