GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation authorizes access to a specific Conan package file in a GitLab repository using the GitLab API. It is useful for managing and securing access to package files in a Conan package repository hosted on GitLab. For example, it can be used to authorize download or upload actions for files like conanfile.py or conan_package.tgz within a specific package version and channel.

Use Case Examples

  1. Authorize access to the conanfile.py of version 1.0 of a package named 'my-package' under the user 'my-group+my-project' in the 'stable' channel with recipe revision 0.
  2. Use this operation to programmatically manage file access permissions in CI/CD pipelines or automated package management workflows.

Properties

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

Output

JSON

  • statusCode - HTTP status code of the authorization request response
  • body - Response body containing authorization details or error messages

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all path parameters (package_name, package_version, package_username, package_channel, recipe_revision, file_name) are correctly provided and valid to avoid 404 or 400 errors.
  • If authentication is enabled, verify that the GitLab API credentials are correctly configured and have sufficient permissions to authorize package file access.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct and accessible.

Links

Discussion