GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to retrieve personal access tokens for the authenticated user. It is useful for scenarios where you need to programmatically access or manage your own personal access tokens in GitLab, such as automating token retrieval for integration or auditing purposes. For example, a user can use this node to fetch their personal access tokens without manually logging into GitLab.

Use Case Examples

  1. Automate retrieval of personal access tokens for CI/CD pipelines.
  2. Audit personal access tokens for security compliance.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication credentials for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.

Output

JSON

  • response - The JSON response from the GitLab API containing the personal access tokens of the authenticated user.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has the necessary permissions to access personal access tokens.
  • If the node returns authentication errors, verify that 'Skip Authentication' is not enabled unless intended.
  • Check the baseUrl property to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion