aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/pkg/service
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-02-18 16:33:07 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-02-19 14:52:44 +0000
commitb257a9b7546c59d44cd69160b5a65a1bf1f050eb (patch)
tree8c05de868d70660622a1871b739e99a6cfe5d6e6 /syz-cluster/pkg/service
parent3b79d489db1ad98df7f1986a4695f581e6be9be3 (diff)
syz-cluster/pkg/report: add an email template
The first revision of the email template that will be used for reporting the findings. This PR adds more fields to the pkg/api package, but these are not filled by the implementation yet. That will be done separately.
Diffstat (limited to 'syz-cluster/pkg/service')
-rw-r--r--syz-cluster/pkg/service/finding.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/syz-cluster/pkg/service/finding.go b/syz-cluster/pkg/service/finding.go
index b0530a42c..bb605ba73 100644
--- a/syz-cluster/pkg/service/finding.go
+++ b/syz-cluster/pkg/service/finding.go
@@ -67,10 +67,11 @@ func (s *FindingService) List(ctx context.Context, sessionID string) ([]*api.Fin
Title: item.Title,
LogURL: "TODO", // TODO: where to take it from?
}
- finding.Report, err = blob.ReadAllBytes(s.blobStorage, item.ReportURI)
+ bytes, err := blob.ReadAllBytes(s.blobStorage, item.ReportURI)
if err != nil {
return nil, fmt.Errorf("failed to read the report: %w", err)
}
+ finding.Report = string(bytes)
ret = append(ret, finding)
}
return ret, nil