trusted_publishing

List Trusted Publishing configurations for GitLab CI/CD.

get/api/v1/trusted_publishing/gitlab_configs

Request

  • Base URL: https://crates.io
  • URL: https://crates.io/api/v1/trusted_publishing/gitlab_configs
  • Auth: one of:
    • API key in cookie cargo_session
    • API key in header authorization

Query parameters

cratestring

Name of the crate to list Trusted Publishing configurations for.

user_idinteger

User ID to list Trusted Publishing configurations for all crates owned by the user.

pageinteger

The page number to request.

This parameter is mutually exclusive with seek and not supported for all requests.

per_pageinteger

The number of items to request per page.

seekstring

The seek key to request.

This parameter is mutually exclusive with page and not supported for all requests.

The seek key can usually be found in the meta.next_page field of paginated responses.

Response

Successful Response

Example response

{
  "gitlab_configs": [
    {
      "crate": "regex",
      "id": 42,
      "namespace": "rust-lang",
      "project": "regex",
      "workflow_filepath": ".gitlab-ci.yml"
    }
  ],
  "meta": {
    "next_page": "?seek=abc123",
    "total": 42
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.