GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation checks user credentials for Conan packages in GitLab via the GitLab API. It is useful for verifying authentication status when interacting with Conan package repositories hosted on GitLab. For example, it can be used in CI/CD pipelines or automation workflows to ensure valid credentials before performing package management tasks.

Use Case Examples

  1. Verify Conan package user credentials before uploading or downloading packages in GitLab.
  2. Automate credential validation in a DevOps pipeline to prevent unauthorized access to Conan repositories.

Properties

Name Meaning
Skip Authentication If set to true, the node skips the authentication process.
Authentication Selects the authentication method to use, defaulting to GitLab API authentication. Hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API credential is correctly configured and has the necessary permissions to access the Conan package API endpoint.
  • If skipping authentication, verify that the endpoint allows unauthenticated requests; otherwise, authentication errors will occur.
  • Common error messages include 401 Unauthorized if credentials are invalid or missing, and 404 Not Found if the API path is incorrect. Verify the baseUrl and path settings.

Links

Discussion