Skip to content

Commit 5e4cc83

Browse files
committed
[#1758] More verbose govulncheck output
1 parent 6ea8090 commit 5e4cc83

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

rakelib/30_dev.rake

+11-2
Original file line numberDiff line numberDiff line change
@@ -822,14 +822,23 @@ namespace :audit do
822822
desc 'Check the backend security issues'
823823
task :backend => [GOVULNCHECK] + go_codebase do
824824
Dir.chdir("backend") do
825-
sh GOVULNCHECK, "./..."
825+
show_opts = ["version"]
826+
if ENV["CI"] != "true"
827+
show_opts.append "color"
828+
end
829+
830+
sh GOVULNCHECK, "--show", show_opts.join(","), "./..."
826831
end
827832
end
828833

829834
desc 'Check the backend security issues (including testing codebase)'
830835
task :backend_tests => [GOVULNCHECK, "gen:backend:mocks"] + go_codebase do
831836
Dir.chdir("backend") do
832-
sh GOVULNCHECK, "-test", "./..."
837+
show_opts = ["version"]
838+
if ENV["CI"] != "true"
839+
show_opts.append "color"
840+
end
841+
sh GOVULNCHECK, "--show", show_opts.join(","), "-test", "./..."
833842
end
834843
end
835844

0 commit comments

Comments
 (0)