GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the digest information of a specific Conan package version from a GitLab project. It is useful for users who want to verify or inspect the digest of a Conan package stored in a GitLab project's package registry. For example, a developer or DevOps engineer can use this node to programmatically fetch the digest of a Conan package to ensure package integrity or for auditing purposes.

Use Case Examples

  1. Fetch the digest of a Conan package version '1.0' named 'my-package' under the username 'my-group+my-project' and channel 'stable' from a specific GitLab project identified by its ID.
  2. Use this operation to automate validation of Conan package versions in CI/CD pipelines by retrieving their digests from GitLab.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request. Defaults to false, meaning authentication is used.
Authentication The authentication method used for the API request, hidden unless Skip Authentication is false. Defaults to GitLab API key authentication.
baseUrl The base URL of the GitLab instance. Defaults to 'https://gitlab.com'.
Method The HTTP method used for the API request. Defaults to GET.
Path Parameters Parameters required in the API request path to identify the specific Conan package digest to retrieve. Includes project ID, package name, package version, package username, and package channel.

Output

JSON

  • digest - The digest information of the specified Conan package version retrieved from GitLab.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure that the project ID and all path parameters (package name, version, username, channel) are correctly specified and URL-encoded if necessary.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to access the project's package registry.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct and accessible.
  • Common error messages may include 404 Not Found if the package or project does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion