Skip to content

Commit

Permalink
feat: govulncheck
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jun 18, 2024
1 parent e4db274 commit fc9e531
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Install Go formatting tooling
- name: Install tools
run: make install-format-go
- name: Formatting check
run: make format-go
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Install golangci-lint
- name: Install tools
run: make install-lint-go
- name: Run golangci-lint
run: make lint-go
2 changes: 1 addition & 1 deletion .github/workflows/vuln.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Install gosec
- name: Install tools
run: make install-vuln-go
- name: Run vulnerability check
run: make vuln-go
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ lint-go:
.PHONY: vuln-go
vuln-go:
cd tests/go && \
govulncheck ./... && \
go vet ./... && \
gosec ./...

Expand All @@ -69,5 +70,6 @@ install-lint-go:

.PHONY: install-vuln-go
install-vuln-go:
go install golang.org/x/vuln/cmd/govulncheck@latest
go install github.com/securego/gosec/v2/cmd/gosec@latest

0 comments on commit fc9e531

Please sign in to comment.