GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation authorizes access to a specific file within a Conan package stored in GitLab's package registry. It is useful for managing permissions and access control for package files in CI/CD pipelines or automated workflows involving Conan packages in GitLab.

Use Case Examples

  1. Authorize access to the 'conaninfo.txt' file of a specific Conan package version for a given user and channel.
  2. Automate permission management for Conan package files during deployment or package distribution processes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, hidden unless Skip Authentication is false.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required to specify the exact Conan package file to authorize, including package name, version, username, channel, recipe revision, Conan package reference, package revision, and file name.

Output

JSON

  • status - HTTP response status indicating the result of the authorization request.
  • body - Response body containing details about the authorization outcome or error messages.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all path parameters are correctly provided and match the existing package details in GitLab.
  • Verify that the authentication token has sufficient permissions to authorize package files.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 401 Unauthorized (authentication failure), 404 Not Found (incorrect package or file details), and 403 Forbidden (insufficient permissions).

Links

Discussion