GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation rotates an access token for a specific project in GitLab. It is useful for automating the management of project access tokens, such as renewing tokens to maintain security without manual intervention. For example, a user can schedule this node to rotate tokens periodically to ensure tokens are up-to-date and reduce the risk of token compromise.

Use Case Examples

  1. Automate rotation of project access tokens in GitLab to enhance security.
  2. Integrate token rotation into CI/CD pipelines to maintain continuous access without manual token updates.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
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 for the API path including project ID and token ID.

Output

JSON

  • id - The ID of the rotated access token.
  • name - The name of the access token.
  • scopes - The scopes or permissions granted to the access token.
  • created_at - Timestamp when the token was created.
  • expires_at - Expiration date of the token.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and token ID are correctly specified; incorrect IDs will cause API errors.
  • Authentication errors may occur if the GitLab API key is invalid or missing; verify credentials.
  • Check that the base URL is correct for your GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion