Depot
Connect
Connect Depot from the terminal. Pass --help for the flags Depot accepts.
polylane integration connect --type depotAn organization API token from Organization Settings → API Tokens in Depot.
Connect your Depot organization with an organization API token.
- In Depot API tokens, create an organization token.
- Paste the token into Polylane. Polylane checks it and finds the organization and its GitHub connection.
How it works
Projects in the context graph
Polylane syncs your Depot projects every hour, and a first time shortly after connect. Each project becomes a depot.project node. Polylane links a repository to the Depot project that it builds on. The evidence comes from the files of the repository, because Depot does not name a repository on a project. Examples are depot.json, DEPOT_PROJECT_ID, the --project flag of a depot command, the project input of the Depot GitHub actions, and images in registry.depot.dev.
What Polylane monitors
Polylane monitors the GitHub Actions jobs of the organization on Depot runners: the job failure rate, the number of failed jobs, and the average duration. The checks use hourly buckets over one day. An hour with fewer than five jobs has no failure rate.
Polylane also monitors the container builds of each Depot project: builds by status, the failure rate, the average and p95 duration, and the layer cache hit rate. Polylane does not monitor Depot CI runs. A sustained change opens an issue.
Failed builds on GitHub
Depot sends no events to Polylane. When GitHub is connected, a failed GitHub Actions run on the default branch reaches Polylane as a GitHub event and becomes an alert. A failed Depot CI check suite on the default branch or its merge queue also becomes an alert. Polylane triages the alert like any other alert, and a new failure starts an investigation.
Agent tools and changes
Read Depot data and request API changes through Polylane. During an investigation, agents use the tools under Depot APIs. Through depotApi, a Get, List, Search or Count method is a read. Every other method changes state, so it needs a reason, safety review and approval before it runs. The token has no scopes, so this review is what limits changes in Depot.
Polylane checks the token every six hours.
Depot APIs
Depot organization tokens have no scopes. Polylane uses these Depot APIs:
| Tool | Depot API | What it unlocks |
|---|---|---|
depotGithubActionsJobs | GithubActionsService jobs | Finds failed, slow, and running GitHub Actions jobs on Depot runners. |
depotGithubActionsLogs | GithubActionsService logs | Searches job log lines and reads the lines around a match. |
depotGithubActionsAnalytics | GithubActionsService analytics | Reads failure rates, durations, and runner size recommendations. |
depotCiRuns | CIService | Follows Depot CI runs, their jobs, and their logs. |
depotBuilds | ProjectService, BuildService | Reads container builds, their steps, and step logs. |
depotApi | Any Depot API | Calls the Depot API. Calls that change state need safety review and approval. Depot CI secrets and variables are not available, for reads or for changes. |
Disconnecting
When you disconnect, Polylane leaves the organization API token in Depot. Remove it under Organization Settings → API Tokens in Depot.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what Depot's API lets it remove. The following stays until you remove it yourself:
- Depot organization API token
polylane integration disconnect <id>Tools
6Operations agents can perform in threads.