GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific project from the job token scope allowlist of a given user project in GitLab. It is useful for managing project permissions and security by removing projects that should no longer have job token access. For example, if a project was mistakenly added to the allowlist or if access needs to be revoked, this operation can be used to remove that project from the allowlist.

Use Case Examples

  1. Removing a project from the job token scope allowlist to restrict its access to job tokens.
  2. Revoking job token scope permissions for a project that is no longer trusted or needed.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Default is false.
Authentication Type of authentication used, default is GitLab API key authentication.
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 relevant for this operation.
Path Parameters Path parameters required for the API call, including the user project ID ('id') and the target project ID ('target_project_id') to be removed from the allowlist.

Output

JSON

  • statusCode - HTTP status code of the API response indicating success or failure of the delete operation
  • responseBody - Body of the API response, typically empty or containing confirmation of deletion

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure that the 'id' and 'target_project_id' path parameters are correctly set and correspond to valid project IDs in GitLab.
  • Verify that the API key used has sufficient permissions to manage job token scope allowlists for the specified projects.
  • If authentication is skipped, the request may fail due to lack of authorization.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion