git.security.list-dependency-alertsVulnerable dependencies in the default branch’s lockfiles
Request syntax
GET /git/api/repositories/{repoId}/security/dependency-alertsPath parameters
repoIdRequiredstring
Constraints: uuid
Response
200 with the alerts, most recently changed first: id, state, ecosystem, packageName, installedVersion, fixedVersion, vulnerabilityId, severity, title and manifestPath, among others (the advisory text only in `get-dependency-alert`).
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Fields of data
[].idAlwaysstring
The alert[].orgIdAlwaysstring
The organization[].repoIdAlwaysstring
The repository[].stateAlwaysone of open, fixed, dismissed
fixed once a scan no longer finds the vulnerable version[].manifestPathAlwaysstring
The lockfile the package is installed by[].ecosystemAlwaysstring
The package ecosystem, e.g. npm[].packageNameAlwaysstring
The vulnerable package[].installedVersionAlwaysstring
The version the lockfile installs[].fixedVersionAlwaysstring, may be null
The first version with the fix; null if none yet[].vulnerabilityIdAlwaysstring
The advisory id, e.g. GHSA-… or CVE-…[].severityAlwaysone of critical, high, medium, low, unknown
The severity[].titleAlwaysstring
The advisory's title[].urlAlwaysstring, may be null
A link to the advisory; null when it has none[].cvssScoreAlwaysnumber, may be null
CVSS base score, 0 to 10; null when not published[].cvssVectorAlwaysstring, may be null
CVSS vector string; null when not published[].referencesAlwaysarray of string
Links the advisory cites[].aliasesAlwaysarray of string
Other ids of the same advisory[].publishedAtAlwaysstring, may be null
When the advisory was published (ISO 8601); null when unknown[].relationshipAlwaysone of direct, indirect, may be null
direct: named in the manifest; indirect: pulled in by another package; null when unknown[].chainAlwaysarray of string
From a direct dependency down to this package, name@version each[].devAlwaysboolean, may be null
Only a development dependency; null when unknown[].lastSeenCommitOidAlwaysstring
The default-branch commit of the scan that last saw it[].dismissedReasonAlwaysstring, may be null
Why it was dismissed; null unless dismissed[].dismissedCommentAlwaysstring, may be null
Own words beside the reason; null unless given[].dismissedAtAlwaysstring, may be null
When it was dismissed (ISO 8601); null unless dismissed[].dismissedByIamUserIdAlwaysstring, may be null
Who dismissed it; null unless dismissed[].fixedAtAlwaysstring, may be null
When a scan found it fixed (ISO 8601); null until then[].createdAtAlwaysstring
When it was first found (ISO 8601)[].updatedAtAlwaysstring
When the alert last changed (ISO 8601)
Checked against the handlers: every route test validates their answers against this schema.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow git:ListSecurityAlerts on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud git security list-dependency-alerts repoIdcurl -X GET "https://console.platform-development.deutschecloud.app/git/api/repositories/repoId/security/dependency-alerts" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_git_security_list-dependency-alerts.