List SAST rules

List SAST rules. Requires scope repositories:read

get/repositories/code/sast/rules

Request

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

Query parameters

repo_idinteger

Optional: Filters the open issue count to only count the issues related to the specified repo

Response

A list of SAST rules

idstring

The unique identifier of this rule

titlestring

The title of this rule

base_scoreinteger

A numeric value from 1 to 100 indicating how severe the issue associated with this rule is

descriptionstring

A summary of what the issue associated with this rule is

how_to_fixstring

A description on how to fix the issue associated with this SAST rule

language'JS' | 'TS' | 'PHP' | 'Java' | 'Scala' | 'GO' | 'PY' | 'Ruby' | '.NET' | 'RUST' | 'Dart' | 'Swift' | 'Elixir' | 'C' | 'Clojure' | 'kotlin' | 'terraform' | 'generic'

The programming language associated with this SAST rule

open_issues_countinteger

A numeric value indicating how many open single issues are associated with this rule

Example response

[
  {
    "id": "AIK_use_of_polyfill_io",
    "title": "Serving JS code from a malicious domain",
    "base_score": 100,
    "description": "Aikido found references to a malicious domain (e.g. polyfill[.]io, bootcss[.]net). You may be embedding its scripts in your application. The domains are owned by an entity known for serving malicious code.",
    "how_to_fix": "Remove any references to the malicious domain.",
    "language": "JS",
    "open_issues_count": 1
  }
]

Changes

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