GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows adding groups to the job token scope groups allowlist for a specific project in GitLab. It is useful for managing which groups are permitted to use job tokens within a project, enhancing security and access control. For example, a DevOps engineer can use this node to programmatically update the allowlist of groups that can access job tokens for CI/CD pipelines in a GitLab project.

Use Case Examples

  1. Add a group to the job token scope allowlist for project ID 123 to control CI/CD job token access.
  2. Automate updating the allowlist when new groups are created or permissions change.

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 for the API request, default is GET.
Path Parameters Parameters included in the API request path, specifically the project ID to identify the target project.

Output

JSON

  • response - The JSON response from the GitLab API after adding groups to the job token scope allowlist.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in path parameters is valid and accessible with the authenticated user.
  • Verify that the request body includes the required group information to add to the allowlist.
  • Check network connectivity and baseUrl correctness if the API call fails to reach GitLab.
  • Authentication errors may occur if the API key is missing, expired, or lacks necessary permissions.

Links

Discussion