GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific Debian package source file from a GitLab project using the SHA256 hash of the file. It is useful for users who want to access Debian package distribution components by verifying the file integrity through its SHA256 hash. For example, a developer or system administrator can use this operation to fetch a Debian package source file from a GitLab repository to ensure the package's authenticity and integrity before deployment.

Use Case Examples

  1. Fetching a Debian package source file from a GitLab project by specifying the project ID, distribution codename, component, and the SHA256 hash of the file.
  2. Verifying and downloading Debian package components for automated deployment pipelines.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Query parameters for the request, specifically the Debian distribution codename or suite.
Path Parameters Path parameters for the request including project ID, Debian component, and the SHA256 hash of the file.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • distribution - The Debian Codename or Suite.
  • component - The Debian Component.
  • file_sha256 - The SHA256 hash of the file to identify the Debian package source.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and other path parameters are correctly URL-encoded and valid to avoid 404 errors.
  • Verify that the SHA256 hash provided matches an existing file in the Debian package distribution to prevent errors.
  • Check authentication credentials if the request fails due to permission issues.

Discussion