GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific group from the job token scope groups allowlist of a GitLab project. It is useful for managing project security by controlling which groups are allowed to use job tokens within the project. For example, if a group should no longer have access to the project's job token scope, this operation removes that group's allowlist entry.

Use Case Examples

  1. Removing a group from the allowlist to restrict its access to job tokens in a CI/CD pipeline.
  2. Managing project permissions by dynamically updating the job token scope allowlist.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, typically an API key credential.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, here it is DELETE for this operation.
Path Parameters The path parameters required for the API call, including the project ID and the target group ID to be removed from the allowlist.

Output

JSON

  • response - The JSON response from the GitLab API after deleting the group from the allowlist, typically confirming the deletion or providing status information.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and target group ID are correct and exist in GitLab to avoid 404 errors.
  • Verify that the API token used has sufficient permissions to modify the job token scope allowlist for the project.
  • Check network connectivity and the base URL configuration if the request fails to reach the GitLab server.

Links

Discussion