GitLab API

GitlabTool

Actions905

Overview

This node operation checks user credentials for accessing Conan packages in a specific GitLab project via the GitLab API. It is useful for verifying if a user has the necessary permissions to interact with Conan packages in a project. For example, it can be used in CI/CD pipelines or automation workflows to validate access before performing package operations.

Use Case Examples

  1. Check if a user has valid credentials to access Conan packages in a GitLab project before downloading or uploading packages.
  2. Automate permission validation for users managing Conan packages in a project repository.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path.

Output

JSON

  • response - The response from the GitLab API indicating the result of the credentials check.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible.
  • Verify that the GitLab API key used for authentication has sufficient permissions to check credentials for Conan packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access for this endpoint, otherwise the request will fail.

Links

Discussion