We provide three different options you can use to authenticate your build to our remote Docker builders via the depot
CLI.
You can generate an access token tied to your Depot account that can be used for builds in any project in any organization you have access. When you run depot login
we authenticate your account and generate a new user access token that all builds from your machine use by default. It is recommended to only use these for local development and not in CI environments.
To generate a user access token, you can go through the following steps:
Unlike user access tokens, project tokens are tied to a specific project in your organization and not a user account. These are ideal for building images with Depot from your existing CI provider. They are not tied to a single user account and are restricted to a single project in a single organization.
To generate a project token, you can go through the following steps:
If you use GitHub Actions, CircleCI, or Buildkite as your CI provider, we can directly integrate with GitHub Actions OIDC, CircleCI OIDC, Buildkite OIDC, or Mint via trust relationships. This token exchange is a great way to plug Depot into your existing Actions workflows, CircleCI jobs, or Buildkite pipelines, as it requires no static secrets, and credentials are short-lived.
You configure a trust relationship in Depot that allows your GitHub Actions workflows, CircleCI jobs, or Buildkite pipelines to access your project via a token exchange. The CI job requests an access token from Depot, and we check the request details to see if they match a configured trust relationship for your project. If everything matches, we generate a temporary access token and return it to the job. This temporary access token is only valid for the duration of the job that requested it.
To add a trust relationship for GitHub Actions, you can go through the following steps:
To add a trust relationship for CircleCI, you can go through the following steps:
Note: CircleCI requires entering your organization and project UUID, not the friendly name of your organization or project.
To add a trust relationship for Buildkite, you can go through the following steps:
buildkite.com/<org-slug>
)buildkite.com/<org-slug>/<pipeline-slug>
)To add a trust relationship for Mint, you can go through the following steps: