aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/email-reporter
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-23 15:13:58 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-23 13:26:40 +0000
commit3a8df82293012dff3bc5f2db82d9676629da4ed2 (patch)
tree8cefd51dd70c122fef5a4cbef21ad764acf93bd6 /syz-cluster/email-reporter
parentbff25996d25dacd8127184a5865bdd1f3d0d4a5f (diff)
syz-cluster: configure a Cc list for reported bugs
Cc syzkaller-bugs@googlegroups.com in all upstreamed syzbot ci findings.
Diffstat (limited to 'syz-cluster/email-reporter')
-rw-r--r--syz-cluster/email-reporter/handler.go1
-rw-r--r--syz-cluster/email-reporter/handler_test.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/syz-cluster/email-reporter/handler.go b/syz-cluster/email-reporter/handler.go
index c0af2e7d7..5cfd9dbb3 100644
--- a/syz-cluster/email-reporter/handler.go
+++ b/syz-cluster/email-reporter/handler.go
@@ -89,6 +89,7 @@ func (h *Handler) report(ctx context.Context, rep *api.SessionReport) error {
// We assume that email reporting is used for series received over emails.
toSend.InReplyTo = rep.Series.ExtID
toSend.To = rep.Series.Cc
+ toSend.Cc = append(toSend.Cc, h.emailConfig.ReportCC...)
}
msgID, err := h.sender(ctx, toSend)
if err != nil {
diff --git a/syz-cluster/email-reporter/handler_test.go b/syz-cluster/email-reporter/handler_test.go
index 21ea14149..d26002764 100644
--- a/syz-cluster/email-reporter/handler_test.go
+++ b/syz-cluster/email-reporter/handler_test.go
@@ -57,7 +57,7 @@ func TestModerationReportFlow(t *testing.T) {
receivedEmail.Body = nil
assert.Equal(t, &emailclient.Email{
To: testSeries.Cc,
- Cc: []string{testEmailConfig.ArchiveList},
+ Cc: append([]string{testEmailConfig.ArchiveList}, testEmailConfig.ReportCC...),
Subject: "[name] Re: " + testSeries.Title,
InReplyTo: testSeries.ExtID,
BugID: report.ID,