GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a project from the job token scope allowlist in GitLab. It is useful for managing project permissions by removing a specified target project from the allowlist of a user project, thereby revoking its job token scope access. For example, it can be used in CI/CD pipelines to control which projects can access job tokens.

Use Case Examples

  1. Remove a target project from the allowlist of a user project to restrict job token scope access.
  2. Manage project permissions dynamically by deleting allowlist entries via API calls.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, 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 relevant here.
Path Parameters Parameters for the API path including user project ID and target project ID to remove from allowlist.

Output

JSON

  • statusCode - HTTP status code of the API response indicating success or failure.
  • responseBody - Body of the API response, typically empty for delete operations.

Dependencies

  • GitLab API key credential for authentication.

Troubleshooting

  • Ensure the provided project IDs are correct and exist in GitLab.
  • Verify that the API token has sufficient permissions to delete from the job token scope allowlist.
  • Check network connectivity and base URL correctness if requests fail.
  • Common error: 404 Not Found if the project or target project does not exist.
  • Common error: 403 Forbidden if authentication lacks required permissions.

Links

Discussion