Skip to content

Commit

Permalink
Merge pull request #3051 from buildkite/fix-tool-sign-grahql
Browse files Browse the repository at this point in the history
Allow token to be empty if graphql-token is provided
  • Loading branch information
DrJosh9000 authored Oct 28, 2024
2 parents 1772973 + 53013d2 commit 407af13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agenthttp/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (t authenticatedTransport) RoundTrip(req *http.Request) (*http.Response, er
}()
}

if t.Token == "" {
if t.Token == "" && t.Bearer == "" {
return nil, fmt.Errorf("Invalid token, empty string supplied")
}

Expand Down

0 comments on commit 407af13

Please sign in to comment.