GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific Debian package file from a GitLab project using the SHA256 hash of the file. It is useful for users who want to access or verify Debian package files stored in GitLab repositories by specifying detailed parameters such as project ID, distribution, component, architecture, and file hash.

Use Case Examples

  1. A developer wants to download a Debian package file from a GitLab project to verify its integrity using the SHA256 hash.
  2. A CI/CD pipeline fetches a specific Debian package from GitLab to deploy it on a server.

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 to identify the project and Debian package file, including project ID, component, architecture, and file SHA256 hash.

Output

JSON

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

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters (id, component, architecture, file_sha256) and query parameter (distribution) are correctly provided; missing or incorrect parameters will cause request failures.
  • If authentication is skipped, ensure the GitLab instance allows unauthenticated access to the requested resource, otherwise the request will fail with authorization errors.
  • Verify the baseUrl is correct and accessible; incorrect URLs will result in connection errors.

Links

Discussion