GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the Release.gpg file for a specific Debian distribution within a GitLab project. It is useful for users who need to access the GPG signature of a Debian package distribution to verify its authenticity and integrity. For example, a DevOps engineer might use this to automate the verification of Debian package distributions hosted in GitLab repositories.

Use Case Examples

  1. Retrieve the Release.gpg file for the 'buster' distribution in a project with ID '12345' to verify package authenticity.
  2. Automate the download of the GPG signature for a Debian distribution in a CI/CD pipeline to ensure package integrity before deployment.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request (boolean). Defaults to false.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET. Options include GET, POST, PUT, DELETE, HEAD, PATCH.
Query Parameters - Distribution The Debian Codename or Suite to specify the distribution for which the Release.gpg file is requested.
Path Parameters - Id The ID or URL-encoded path of the GitLab project containing the Debian package distribution.

Output

JSON

  • response - The raw response content of the Release.gpg file retrieved from the GitLab API

Dependencies

  • GitLab API key credential for authentication unless Skip Authentication is enabled

Troubleshooting

  • Ensure the project ID and distribution name are correctly specified to avoid 404 Not Found errors.
  • If authentication is required, verify that the GitLab API key credential is valid and has sufficient permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.
  • Common error messages include 401 Unauthorized (invalid or missing API key) and 404 Not Found (incorrect project ID or distribution).

Links

Discussion