dcloud errors connections connect-ci

Connect a repository’s CI environment: its jobs exchange their OIDC token for an upload token

IAM ci:PutEnvironmentChanges state

A job with `environment: <name>` and `permissions: id-token: write` requests an OIDC token with the audience errors.<root> and posts it to /errors/api/upload-token/exchange. Pull-request runs are refused; the token is revoked when the run ends.

Synopsis

dcloud errors connections connect-ci id --repository-id repositoryId --environment environment [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --repository-idRequired

    string

    Git repository id

    Constraints: uuid

  • --environmentRequired

    string

    CI environment name, as a job’s `environment:` names it; created when missing

    Constraints: 1-255 chars

  • --sentry-environmentOptional

    string

    SENTRY_ENVIRONMENT for the jobs; omitted: the CI environment’s own name

    Constraints: 1-64 chars, /^[^\s/]+$/

    May be null.

Example

dcloud errors connections connect-ci id --repository-id 00000000-0000-0000-0000-000000000000 --environment example

Generated from the API description, the same one the API checks requests against and the CLI is built from.