GitLab API icon

GitLab API

Gitlab

Actions880

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. Adding a group to the job token scope allowlist for a project to enable CI/CD job token access.
  2. Automating the management of job token scope groups allowlist in GitLab projects as part of a deployment pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to 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.
Path Parameters Parameters to be included in the request path, specifically the project ID for this operation.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID is valid and accessible with the provided authentication.
  • Verify that the authentication credentials are correctly configured and have sufficient permissions.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common errors include 401 Unauthorized (authentication failure), 404 Not Found (invalid project ID), and 400 Bad Request (invalid request body).

Links

Discussion