GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific Debian package file from a GitLab group repository using the GitLab API. It fetches the package file identified by its SHA256 hash within a specified Debian distribution, component, and architecture. This is useful for automating package management and retrieval in CI/CD pipelines or software distribution workflows where Debian packages are hosted on GitLab.

Use Case Examples

  1. Fetch a Debian package file by SHA256 hash from a GitLab group to verify package integrity or automate deployment.
  2. Retrieve package metadata or content for auditing or compliance purposes in a Debian-based software environment.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public or unauthenticated access.
Authentication Type of authentication used, here it is GitLab API authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Parameter Schema Defines the required path and query parameters for the API call, including group ID, Debian distribution, component, architecture, and file SHA256 hash.
Request Path API endpoint path template for the request.
Query Parameters Collection of query parameters, specifically the Debian distribution codename or suite.
Path Parameters Collection of path parameters including group ID, component, architecture, and file SHA256 hash.

Output

JSON

  • id - The group ID or full group path used in the request
  • distribution - The Debian Codename or Suite specified in the query
  • component - The Debian Component specified in the path
  • architecture - The Debian Architecture specified in the path
  • file_sha256 - The SHA256 hash of the file requested

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure all required path and query parameters are correctly provided; missing or incorrect parameters will cause API errors.
  • Authentication errors may occur if the GitLab API credentials are invalid or missing; verify credentials and permissions.
  • Network or base URL issues can cause request failures; confirm the baseUrl is correct and accessible.
  • The file SHA256 hash must be accurate to retrieve the correct package file; verify the hash value.

Links

Discussion