GitLab API

GitlabTool

Actions1095

Debian_packages → getApiV4GroupsIdPackagesDebianDists*distributionComponentSourceByHashSha256FileSha256

AI-generated

Summary

Retrieve a Debian package source file from a GitLab group repository filtered by distribution, component, and file SHA256 hash.

Inputs

  • id (required) — The group ID or full group path where the Debian package source is stored.
  • distribution (required) — The Debian Codename or Suite (distribution) for which to fetch the package source.
  • component (required) — The Debian component (e.g., main) of the distribution.
  • file_sha256 (required) — The SHA256 hash of the source package file to retrieve.

Output shape

a single file or binary content representing the Debian package source matching the specified SHA256 hash

The operation uses a GET HTTP method and requires authentication by default unless skipAuthentication is set to true. The base URL defaults to https://gitlab.com or can be customized.

Examples

Example 1: Fetching a specific Debian source package file by its SHA256 checksum from a group's package repository.

Set the group id/path, specify the distribution (e.g., 'buster'), component (e.g., 'main'), and provide the exact file SHA256 hash.

Links

Discussion