GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific Debian package file from a GitLab project's Debian package repository using the SHA256 hash of the file. It is useful for automating the download or verification of Debian package files hosted in GitLab projects, especially when precise file identification by hash is required.

Use Case Examples

  1. Automate fetching a Debian installer binary for a specific architecture and component from a GitLab project.
  2. Verify the integrity of a Debian package by retrieving it using its SHA256 hash from GitLab.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Parameter Schema Defines the required path and query parameters for the API call, including project ID, Debian distribution, component, architecture, and file SHA256 hash.
Query Parameters The Debian distribution codename or suite to query.
Path Parameters Parameters identifying the project, Debian component, architecture, and the SHA256 hash of the file to retrieve.

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

  • Requires GitLab API authentication credentials (API key or token).

Troubleshooting

  • Ensure the project ID and other path parameters are correctly URL-encoded and valid.
  • Verify that the SHA256 hash provided matches an existing file in the Debian package repository.
  • Check that the authentication credentials are valid and have sufficient permissions to access the project packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the requested resource.

Links

Discussion