Skip to content

Commit

Permalink
feat: add govulncheck to Go lint generator (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb authored Nov 6, 2024
1 parent 03b5330 commit 7e75d13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gabo/internal/generator/golang_lint_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
}
Expand Down

0 comments on commit 7e75d13

Please sign in to comment.