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 or automation workflows to validate user access before performing package-related actions.

Use Case Examples

  1. Check if a user has valid credentials for Conan packages in a GitLab project before allowing package upload.
  2. Verify user permissions for 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 indicating the result of the credentials check.
  • body - Response body containing details about the credentials validation.

Dependencies

  • GitLab API credentials

Troubleshooting

  • Ensure the project ID is correctly provided in the path parameters to avoid 404 errors.
  • If authentication is skipped, the request may fail due to lack of permissions.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the project and its packages.
  • Common error messages include 401 Unauthorized (invalid or missing credentials) and 403 Forbidden (insufficient permissions).

Links

Discussion