List code repositories

Returns a list of all the active code repositories in your account

get/repositories/code

Request

  • Base URL
    https://app.aikido.dev/api/public/v1
  • URL
    https://app.aikido.dev/api/public/v1/repositories/code
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://app.aikido.io/api/oauth/token scopes: repositories:read

Query parameters

pageinteger

Pagination parameter, starts at 0.

per_pageinteger

Amount of items returned

include_inactiveboolean

Include inactive repositories

filter_namestring

filter repositories by name

filter_branchstring

filter repositories by branch

include_labelsboolean

Include labels in the response

include_config_issues_infoboolean

Include configuration issues information (has_missing_lockfile, has_faulty_lockfile) in the response

Response

A list of code repositories

idinteger required

The repository's id in Aikido.

namestring required

The name of the code repository.

projectstring nullable

The project, group or organization the repository belongs to from the provider

provider'github' | 'gitlab' | 'gitlab-server' | 'bitbucket' | 'azure_devops' | 'selfscan' required

The place where the code repository is hosted

external_repo_idstring

The id of the repository from the provider.

external_repo_numeric_idinteger

The numeric id of the repository from the provider.

urlstring

External URL to the repo

branchstring

The branch of the repository that Aikido will scan.

last_scanned_atinteger

Timestamp representing the last time a scan for this repository ended. Value is -1 when no scan happened yet.

connectivity'connected' | 'not_connected' | 'unknown'

Tells Aikido if this code runs in an internet-connected server

sensitivity'extreme' | 'sensitive' | 'normal' | 'not_sensitive' | 'no_data'

The sensitivity of the repository.

has_missing_lockfileboolean

Whether the repository has a missing lockfile.

has_faulty_lockfileboolean

Whether the repository has a faulty lockfile.

Example response

{
  "id": 1,
  "name": "Compression service",
  "project": "aikidemo",
  "provider": "github",
  "external_repo_id": "R_kgDOI5RlKA",
  "external_repo_numeric_id": 1234567890,
  "active": true,
  "url": "https://api.github.com/repos/aikidemo/compression-service",
  "branch": "main",
  "last_scanned_at": 1720083163,
  "connectivity": "connected",
  "sensitivity": "normal",
  "labels": [
    {
      "id": 1,
      "name": "production",
      "is_imported": false
    },
    {
      "id": 2,
      "name": "core",
      "is_imported": true
    }
  ],
  "has_missing_lockfile": false,
  "has_faulty_lockfile": false
}

Changes

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