dcloud errors connections connect-ciConnect 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>Requiredstring
Also accepted as
--id. Constraints: uuid
Flags
--repository-idRequiredstring
Git repository id
Constraints: uuid
--environmentRequiredstring
CI environment name, as a job’s `environment:` names it; created when missing
Constraints: 1-255 chars
--sentry-environmentOptionalstring
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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.