GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the job token scope groups allowlist for a specific project in GitLab using the GitLab API. It is useful for automating the management and inspection of group allowlists associated with job tokens in GitLab projects. For example, it can be used in CI/CD pipelines to verify or audit which groups are allowed to use job tokens for a given project.

Use Case Examples

  1. Retrieve the list of groups allowed to use job tokens for project ID 123 to audit permissions.
  2. Automate fetching job token scope groups allowlist to integrate with a security compliance workflow.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request (boolean). Defaults to false.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to send the API request to, default is https://gitlab.com.
Method The HTTP method to use for the API request, default is GET.
Query Parameters Optional query parameters for pagination: 'page' (current page number) and 'per_page' (number of items per page).
Path Parameters Path parameter 'id' specifying the project ID for which to retrieve the job token scope groups allowlist.

Output

JSON

  • groups - Array of groups in the job token scope allowlist for the specified project
  • pagination
    • page - Current page number of the results
    • per_page - Number of items per page in the results
    • total - Total number of items available

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID ('id') path parameter is provided and valid; missing or invalid ID will cause request failure.
  • Verify that the GitLab API key credential is correctly configured and has sufficient permissions to access project job token scope allowlist data.
  • Check network connectivity and baseUrl correctness if the API request fails to reach the GitLab server.
  • If pagination parameters ('page' or 'per_page') are set, ensure they are valid integers to avoid API errors.

Links

Discussion