GitLab API

GitlabTool

Actions1000

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 CI/CD pipeline or package management workflow. For example, it can be used to authorize download or upload of package files like conanfile.py or conan_package.tgz for a given package version and user.

Use Case Examples

  1. Authorize access to the conanfile.py of a specific Conan package version for a user and channel in GitLab.
  2. Use in automation to control access to package files before deployment or distribution.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, typically a GitLab API key.
baseUrl The 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 in the API path to specify the package and file to authorize access for.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure all required path parameters are provided and correctly formatted.
  • Verify the GitLab API key has sufficient permissions to authorize package file access.
  • Check the baseUrl is correct and accessible.
  • Common errors include 401 Unauthorized (invalid or missing API key) and 404 Not Found (incorrect package or file parameters).

Links

Discussion