GitLab API icon

GitLab API

Gitlab

Actions880

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 and controlling which job tokens are permitted to access certain project resources, enhancing security and access control within CI/CD pipelines. For example, a user can specify a project ID and provide the necessary allowlist details to update the project's job token scope allowlist via the GitLab API.

Use Case Examples

  1. Adding a new job token scope allowlist entry to a project to restrict job token access.
  2. Automating the management of job token allowlists across multiple projects in GitLab.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to 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 identify the target project.

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 the path parameters is valid and accessible with the authenticated user.
  • Verify that the request body conforms to the expected schema for the job token scope allowlist entry.
  • Check network connectivity and GitLab instance URL correctness if requests fail.
  • Authentication errors may occur if the API key is missing, invalid, or lacks necessary permissions.

Links

Discussion