GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific Debian package source file from a GitLab group repository using the SHA256 hash of the file. It is useful for users who need to access or verify Debian package sources stored in GitLab, particularly when managing package distributions and components within a group.

Use Case Examples

  1. A DevOps engineer fetching a Debian package source file by its SHA256 hash to verify its integrity before deployment.
  2. A package maintainer automating the retrieval of Debian package sources from GitLab for continuous integration workflows.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Query parameters for the request, specifically the Debian distribution codename or suite.
Path Parameters Path parameters required for the API call, including group ID or path, Debian component, and the SHA256 hash of the file.

Output

JSON

  • id - The group ID or full group path.
  • distribution - The Debian Codename or Suite.
  • component - The Debian Component.
  • file_sha256 - The SHA256 hash of the Debian package source file.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the group ID or full group path is correct to avoid 404 errors.
  • Verify the SHA256 hash is accurate and corresponds to an existing file to prevent retrieval failures.
  • Check authentication credentials if skipping authentication is set to false, as unauthorized requests will fail.

Links

Discussion