GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows users to add entries to the job token scope allowlist for a specific project in GitLab. It is useful for managing which projects can use job tokens to access other projects, enhancing security and control over CI/CD pipelines. For example, a user can specify a project ID and provide details in the request body to allow job tokens from that project to access resources in the target project.

Use Case Examples

  1. Allowing a specific project to use job tokens to trigger pipelines in another project.
  2. Managing job token permissions programmatically via n8n workflows.

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 to target.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in path parameters is valid and accessible with the provided authentication.
  • Verify that the request body schema matches the expected format for the job token scope allowlist endpoint.
  • Check network connectivity and base URL correctness if requests fail to reach the GitLab server.
  • Authentication errors may occur if the API key is missing, invalid, or lacks necessary permissions.

Links

Discussion