From acbb3393c18d031ffac52dde796e172c33e576d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Wed, 14 Dec 2022 23:43:40 +0000 Subject: [PATCH] Use Todoist's REST API v2 v1 was deprecated on December 5, 2022. --- pkg/detectors/todoist/todoist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/detectors/todoist/todoist.go b/pkg/detectors/todoist/todoist.go index 1cfd41f45957..a9710ddcbe8c 100644 --- a/pkg/detectors/todoist/todoist.go +++ b/pkg/detectors/todoist/todoist.go @@ -48,7 +48,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result } if verify { - req, err := http.NewRequestWithContext(ctx, "GET", "https://api.todoist.com/rest/v1/projects", nil) + req, err := http.NewRequestWithContext(ctx, "GET", "https://api.todoist.com/rest/v2/projects", nil) if err != nil { continue }