GitLab API

GitlabTool

Actions1000

Overview

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

Use Case Examples

  1. Verify user credentials for Conan packages in a GitLab project before publishing a package.
  2. Check if a user has access rights to Conan packages in a project as part of an automated security audit.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication to use, default is GitLab API credentials.
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

  • status - HTTP response status code indicating the result of the credentials check.
  • body - Response body containing details about the credentials check result.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible.
  • Verify that the GitLab API credentials have sufficient permissions to perform the credentials check.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to this endpoint, otherwise the request will fail.
  • Common error messages include 401 Unauthorized if credentials are invalid or missing, and 404 Not Found if the project ID does not exist.

Links

Discussion