Skip to content

Commit 407af13

Browse files
authored
Merge pull request #3051 from buildkite/fix-tool-sign-grahql
Allow token to be empty if graphql-token is provided
2 parents 1772973 + 53013d2 commit 407af13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/agenthttp/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (t authenticatedTransport) RoundTrip(req *http.Request) (*http.Response, er
3636
}()
3737
}
3838

39-
if t.Token == "" {
39+
if t.Token == "" && t.Bearer == "" {
4040
return nil, fmt.Errorf("Invalid token, empty string supplied")
4141
}
4242

0 commit comments

Comments
 (0)