We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to programatically create agent tokens using:
const agentToken = new buildkite.agent.AgentToken("my-token", {});
and keep running into the following error:
non-200 OK status code: 401 Unauthorized body: "{\n \"errors\": [\n {\n \"message\": \"Authentication required. Please supply a valid API Access Token: https://buildkite.com/docs/apis/graphql-api#authentication\"\n }\n ]\n}\n"
I have set buildkite:api_token to a valid API token and even setup a Provider manually:
buildkite:api_token
export const BK_PROVIDER = new buildkite.Provider("bk-provider", { apiToken: new Config("buildkite").requireSecret("apiToken"), organization: "bint", });
Setting the BUILDKITE_API_TOKEN and clearing out the buildkite:api_token seems to work.
BUILDKITE_API_TOKEN
The text was updated successfully, but these errors were encountered:
I've just run into this myself. Using the environment variable works, but the buildkite:api_token config does not.
Sorry, something went wrong.
No branches or pull requests
Bug
I'm trying to programatically create agent tokens using:
and keep running into the following error:
I have set
buildkite:api_token
to a valid API token and even setup a Provider manually:Workaround
Setting the
BUILDKITE_API_TOKEN
and clearing out thebuildkite:api_token
seems to work.The text was updated successfully, but these errors were encountered: