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 automating the download or verification of Debian package files hosted in GitLab repositories, especially when precise file identification by hash is required.

Use Case Examples

  1. Automating the retrieval of a Debian installer binary for a specific architecture and component in a CI/CD pipeline.
  2. Verifying the integrity of a Debian package by fetching it using its SHA256 hash from a GitLab project.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request, defaulting to GET.
Query Parameters Parameters sent in the query string of the API request.
Path Parameters Parameters sent in the path of the API request URL.

Output

JSON

  • response - The JSON response from the GitLab API containing the Debian package file data or metadata.

Dependencies

  • GitLab API key credential for authentication
  • GitLab instance accessible via the specified baseUrl

Troubleshooting

  • Ensure the project ID and path parameters are correctly specified and URL-encoded if necessary.
  • Verify that the SHA256 hash provided matches an existing Debian package file in the project.
  • 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.
  • Common error messages may include 404 Not Found if the file or project does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion