GitLab API

GitlabTool

Actions1000

Overview

This node operation rotates an access token for a specific group in GitLab. It is useful for automating the process of renewing or invalidating existing group access tokens to maintain security. For example, a user can schedule this node to rotate tokens periodically to reduce the risk of token misuse.

Use Case Examples

  1. Rotate a group access token by specifying the group ID and token ID to generate a new token automatically.
  2. Automate token rotation as part of a CI/CD pipeline to ensure tokens are regularly updated without manual intervention.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters required in the request path, specifically the group ID and the token ID to identify which token to rotate.

Output

JSON

  • rotatedToken - The new rotated access token details returned from the GitLab API after successful rotation.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the group ID and token ID are correctly specified; incorrect IDs will cause the API call to fail.
  • Authentication errors may occur if the API token is invalid or missing; verify the API credentials are correctly configured.
  • Network or base URL issues can cause request failures; confirm the base URL is correct and accessible.

Links

Discussion