GitLab API icon

GitLab API

Gitlab

Actions880

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 to validate credentials before performing package operations.

Use Case Examples

  1. Check if a user has valid credentials for Conan packages in a GitLab project before allowing package upload or download.
  2. Verify user 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.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request (GET, POST, PUT, DELETE, HEAD, PATCH).
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.
  • data - Response data from the GitLab API about the user's credentials status.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

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

Links

Discussion