View a markdown version of this page

GitLabTarget - AWS Continuum for Code Vulnerabilities

GitLabTarget

The GitLab project a patch is delivered to, and the merge request that carries it once opened.

Contents

projectPath

The project's full path (for example group/subgroup/project) as the Build recorded it.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Pattern: [A-Za-z0-9][A-Za-z0-9._\-]*(/[A-Za-z0-9][A-Za-z0-9._\-]*)*

Required: Yes

headSha

The head commit SHA of the merge request. Absent until the merge request is opened.

Type: String

Length Constraints: Fixed length of 40.

Pattern: [a-fA-F0-9]{40}

Required: No

mergeRequestNumber

Project-scoped merge request number assigned by GitLab (the !N it shows; its API calls it the IID).

Type: Long

Valid Range: Minimum value of 1.

Required: No

mergeRequestUri

Canonical HTTPS URL returned by GitLab for the opened merge request. Absent until publication has returned a merge request.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 8192.

Pattern: https://[^\s]+

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: