GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a project from the job token scope allowlist of a specified 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. Remove project with ID 2 from the job token scope allowlist of project with ID 1.
  2. Manage job token scope allowlist to control CI/CD job permissions across projects.

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 but DELETE is used for this operation.
Path Parameters Parameters for the API path including the user project ID and the target project ID to remove from the allowlist.

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • body - Response body from the API after attempting to delete the target project from the allowlist

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the provided project IDs are correct and exist in GitLab.
  • Verify that the API key has sufficient permissions to modify job token scope allowlists.
  • Check network connectivity and base URL correctness if requests fail.
  • Common error: 404 Not Found - The specified project or target project ID does not exist or is not accessible.
  • Common error: 403 Forbidden - The API key does not have permission to delete from the allowlist.

Links

Discussion