GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation authorizes access to a specific Conan package file within a GitLab project. It is useful for managing permissions and ensuring secure access to package files in a CI/CD pipeline or package management workflow. For example, it can be used to authorize downloading or uploading files like conanfile.py or conaninfo.txt for a given package version and revision.

Use Case Examples

  1. Authorize access to the conaninfo.txt file of a specific Conan package version in a GitLab project to enable secure package management.
  2. Use this operation in an automation workflow to control access to package files before deployment or distribution.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET with options including POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Parameters required to identify the specific Conan package file to authorize access for, including project ID, package name, version, username, channel, recipe revision, package reference, package 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

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary to avoid 404 or 400 errors.
  • Verify that the GitLab API authentication token is valid and has sufficient permissions to authorize package file access.
  • Check the file_name parameter to ensure it matches one of the allowed file names to prevent invalid request errors.

Links

Discussion