Skip to content

Commit

Permalink
Merge pull request #637 from CircleCI-Public/orb-info-token-fix
Browse files Browse the repository at this point in the history
Ensure that a user token is passed when fetching orb info
  • Loading branch information
kelvinkfli authored Nov 3, 2021
2 parents a170bd3 + 6b3bd09 commit b65f946
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ func OrbInfo(cl *graphql.Client, orbRef string) (*OrbVersion, error) {
}`

request := graphql.NewRequest(query)
request.SetToken(cl.Token)
request.Var("orbVersionRef", ref)

err := cl.Run(request, &response)
Expand Down

0 comments on commit b65f946

Please sign in to comment.