GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the job token scope groups allowlist for a specific project in GitLab. It is useful for scenarios where you need to manage or audit which groups are allowed to use job tokens within a project, enhancing security and access control. For example, a DevOps engineer might use this to verify or update the allowlist for CI/CD pipelines.

Use Case Examples

  1. Retrieve the list of groups allowed to use job tokens for project ID 12345 to ensure only authorized groups have access.
  2. Paginate through the allowlist groups to audit permissions across multiple pages.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used for the request, typically an API key credential for GitLab.
baseUrl The 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, including page number and items per page.
Path Parameters Path parameters for the request, specifically the project ID.

Output

JSON

  • response - The JSON response containing the job token scope groups allowlist data from GitLab API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID is valid and accessible with the provided authentication credentials.
  • Check that the base URL is correct and points to the appropriate GitLab instance.
  • Verify that the API token has sufficient permissions to access the job token scope groups allowlist.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion