GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the job token scope allowlist for a specific project in GitLab using the GitLab API. It is useful for scenarios where you need to programmatically access or audit the list of allowed job token scopes for a project, such as in CI/CD pipeline management or security auditing.

Use Case Examples

  1. Fetch the job token scope allowlist for project ID 123 to verify which job tokens are permitted.
  2. Automate the retrieval of job token scope allowlists across multiple projects for compliance checks.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication to use, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination such as page number and items per page.
Path Parameters Path parameters including the project ID to specify which project's job token scope allowlist to retrieve.

Output

JSON

  • id - The unique identifier of the allowlist entry
  • name - The name of the job token scope allowlist entry
  • created_at - Timestamp when the allowlist entry was created
  • updated_at - Timestamp when the allowlist entry was last updated

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and accessible with the provided authentication.
  • Check that the base URL is correct and points to a valid GitLab instance.
  • If skipping authentication, verify that the endpoint supports unauthenticated access.
  • Common errors include 401 Unauthorized (invalid or missing API key) and 404 Not Found (invalid project ID).

Links

Discussion