From 8a6eaa36080032d11ba5f3310a7d0728c8474fb6 Mon Sep 17 00:00:00 2001 From: Ashish Bhatia Date: Wed, 6 Nov 2024 12:13:54 -0800 Subject: [PATCH] feat: add `govulncheck` to Go lint generator --- src/gabo/internal/generator/golang_lint_generator.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gabo/internal/generator/golang_lint_generator.go b/src/gabo/internal/generator/golang_lint_generator.go index d08416d..b5c1453 100644 --- a/src/gabo/internal/generator/golang_lint_generator.go +++ b/src/gabo/internal/generator/golang_lint_generator.go @@ -10,6 +10,10 @@ import ( const _goLangLintTask = ` + - name: Run "govulncheck" + working-directory: "%s" + run: go run golang.org/x/vuln/cmd/govulncheck@latest ./... + - name: Run golangci-lint on %s uses: golangci/golangci-lint-action@v6 with: @@ -28,7 +32,7 @@ func generateGoLintYaml(repoDir string) (*string, error) { } str := _lintGoTemplate for _, dir := range dirs { - str += fmt.Sprintf(_goLangLintTask, dir, dir) + str += fmt.Sprintf(_goLangLintTask, dir, dir, dir) } return &str, nil }