GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the digest of a specific Conan package from a GitLab project using the GitLab API. It is useful for developers and DevOps teams who manage Conan packages within GitLab projects and need to verify or obtain metadata about a particular package version and its reference digest. For example, it can be used to automate package validation or integrate package metadata retrieval into CI/CD pipelines.

Use Case Examples

  1. Retrieve the digest of a Conan package version '1.0' named 'my-package' for a specific project to verify package integrity.
  2. Automate fetching package digests for Conan packages in a GitLab project to ensure consistency across deployments.

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 used for the request, default is GET.
Path Parameters Parameters required in the API path to specify the project and Conan package details.

Output

JSON

  • digest - The digest of the specified Conan package, representing its unique content hash or metadata.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure all required path parameters (project ID, package name, version, username, channel, and package reference) are correctly provided; missing or incorrect parameters will cause request failures.
  • If authentication is enabled, verify that the GitLab API token or credentials are valid and have sufficient permissions to access the project and package data.
  • Check the base URL if using a self-hosted GitLab instance to ensure the API endpoint is reachable.
  • Common error messages include 404 Not Found if the project or package does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion