GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific deploy token from a GitLab project. It is useful for managing project security by revoking deploy tokens that are no longer needed or compromised. For example, a user can automate the removal of deploy tokens for projects they own to maintain secure access control.

Use Case Examples

  1. Automate deletion of deploy tokens when a project is archived or deleted.
  2. Revoke deploy tokens that are suspected to be compromised without manual intervention.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, 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 but DELETE is used for this operation.
Path Parameters Parameters required in the request path to identify the project and deploy token to delete.

Output

JSON

  • success - Indicates whether the deploy token was successfully deleted.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and deploy token ID are correct and exist in the GitLab instance.
  • Verify that the API key used has sufficient permissions to delete deploy tokens.
  • If skipping authentication, the request will likely fail unless the GitLab instance allows unauthenticated DELETE requests, which is uncommon.

Links

Discussion