Snyk SAST Integration

Link code project to a target, maximum is 20 per target

Changed on

Only Snyk Code projects imported through an SCM integration (GitHub, GitLab, Bitbucket, Azure Repos) can be linked, because SAST/DAST correlation requires an SCM (repository) target. The project is re-resolved from the Snyk API: a project with any other origin (e.g. CLI-imported) is rejected with a 400 whose body is {"project_id": ["Only Snyk Code projects imported through an SCM integration (GitHub, GitLab, Bitbucket, Azure Repos) can be linked for correlation."]}; a project_id not found in org_id, or a target_id that does not belong to the project, is rejected with a 400 on that field; and a Snyk API failure is a 400 under non_field_errors.

post/targets/{target_id}/integrations/snyk-sast/code-projects/

Request

  • Base URL
    https://api.probely.com
  • URL
    https://api.probely.com/targets/{target_id}/integrations/snyk-sast/code-projects/
  • Auth
    API key in header Authorization

Path parameters

target_idstring required

Request body

idstring

A unique Base58 value identifying this object.

scopestring required

A unique Base58 value identifying this object.

project_idstring uuid required
project_namestring
target_idstring uuid required
target_namestring
org_idstring uuid required
org_namestring
target_filestring

Response

idstring

A unique Base58 value identifying this object.

scopestring required

A unique Base58 value identifying this object.

project_idstring uuid required
project_namestring
target_idstring uuid required
target_namestring
org_idstring uuid required
org_namestring
target_filestring

Changes

    • warning

      removed the optional property from the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added