GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation rotates an access token for a specific project in GitLab. It is useful for maintaining security by periodically updating access tokens without needing to create new ones manually. For example, a user can automate the rotation of project access tokens to ensure that tokens are regularly refreshed, reducing the risk of unauthorized access.

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 secure access to project resources.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is 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 required in the request path to identify the project and token to rotate.

Output

JSON

  • response - The response from the GitLab API after rotating the access token, typically including the new token details.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and token ID are correctly specified; incorrect IDs will cause errors.
  • Authentication errors may occur if the API key is invalid or missing; verify credentials.
  • Network or permission issues may prevent token rotation; check API access rights and network connectivity.

Links

Discussion