cmd/vulnreport: add module info to excluded reports in vulnreport create

For golang/go#55348

Change-Id: Ibcaeef8f195a5f44b62dde082bdf481b9dc697e0
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/432876
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
diff --git a/cmd/vulnreport/main.go b/cmd/vulnreport/main.go
index 70d5087..1f786ae 100644
--- a/cmd/vulnreport/main.go
+++ b/cmd/vulnreport/main.go
@@ -346,6 +346,11 @@
 
 	if excluded != "" {
 		r = &report.Report{
+			Modules: []*report.Module{
+				{
+					Module: modulePath,
+				},
+			},
 			Excluded: excluded,
 			CVEs:     r.CVEs,
 			GHSAs:    r.GHSAs,