From 0aa8e1cd983c054650d06fc39bbfd6e463fd467a Mon Sep 17 00:00:00 2001 From: Cameron Lonsdale <110432140+clonsdale-canva@users.noreply.github.com> Date: Thu, 12 Jan 2023 12:19:51 +0900 Subject: [PATCH] Use access-token endpoint for validity check (#991) --- pkg/detectors/buildkite/buildkite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/detectors/buildkite/buildkite.go b/pkg/detectors/buildkite/buildkite.go index dd0ebc9b9..ab8848ba9 100644 --- a/pkg/detectors/buildkite/buildkite.go +++ b/pkg/detectors/buildkite/buildkite.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.buildkite.com/v2/user", nil) + req, err := http.NewRequestWithContext(ctx, "GET", "https://api.buildkite.com/v2/access-token", nil) if err != nil { continue }