GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the Release.gpg file for a specific Debian distribution from a GitLab project's Debian package repository. It is useful for verifying the authenticity and integrity of Debian package distributions hosted on GitLab. For example, it can be used in automated CI/CD pipelines to fetch and verify Debian package signatures before deployment.

Use Case Examples

  1. Fetch the Release.gpg file for the 'my-distro' Debian distribution in a project with ID '12345' to verify package authenticity.
  2. Use in a security audit workflow to ensure Debian package distributions are properly signed.

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, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Query Parameters Query parameters for the request, specifically the 'distribution' which is the Debian Codename or Suite.
Path Parameters Path parameters for the request, specifically the 'id' which is the ID or URL-encoded path of the GitLab project.

Output

JSON

  • data - The content of the Release.gpg file for the specified Debian distribution in the GitLab project.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the 'id' path parameter correctly identifies the GitLab project and is URL-encoded if necessary.
  • Verify the 'distribution' query parameter matches a valid Debian Codename or Suite in the project.
  • If authentication is enabled, confirm the API token has sufficient permissions to access the project's package repository.
  • Common errors include 404 Not Found if the project or distribution does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion