GitLab API

GitlabTool

Actions1095

Composer_packages → getApiV4GroupIdPackagesComposerPSha

AI-generated

Summary

Retrieve the Composer package JSON file identified by a specific SHA from a specified GitLab group via its API v4 endpoint.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab group from which to fetch the Composer package.
  • Sha (required) — The SHA (shasum) of the Composer JSON file to retrieve for the group.
  • Skip Authentication — Boolean to skip authentication if set to true; by default, authentication via GitLab API credentials is used.
  • baseUrl — The base URL for the GitLab instance; defaults to https://gitlab.com.

Output shape

a single JSON object representing the Composer package contents identified by the given SHA within the specified group

The output corresponds directly to the response of the GET request to /api/v4/group/{id}/-/packages/composer/p/{sha}. Authentication is applied unless explicitly skipped. No pagination is involved.

Examples

Example 1: Fetch a Composer package JSON from a GitLab group

Provide the GitLab group ID or path in 'Id' and the SHA of the composer package file in 'Sha'. Leave 'Skip Authentication' false to use stored credentials.

Links

Discussion