GitLab API

GitlabTool

Actions1000

Overview

This node operation allows adding groups to the job token scope 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 CI/CD job tokens for a 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 project 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 to use for the request, default is GET.
Path Parameters Parameters to be included in the request path, specifically the project ID.

Output

JSON

  • response - 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.
  • Verify that the authentication credentials are correct and have sufficient permissions.
  • Check that the HTTP method is set to POST as required for this operation.
  • If the API returns an error, review the response message for details on missing or invalid parameters.

Links

Discussion