Use access-token endpoint for validity check (#991)

This commit is contained in:
Cameron Lonsdale 2023-01-12 12:19:51 +09:00 committed by GitHub
parent 477e2a1332
commit 0aa8e1cd98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}