GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the job token scope allowlist for a specific project in GitLab using the GitLab API. It is useful for users who want to programmatically access or manage the job token scope allowlist settings of their GitLab projects, such as for automation or integration purposes.

Use Case Examples

  1. Fetch the job token scope allowlist for a project with a given project ID to review which job tokens are allowed to access certain scopes.
  2. Automate the monitoring of job token scope allowlists across multiple projects to ensure compliance with security policies.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Path parameters specifying the project ID for which to retrieve the job token scope allowlist.

Output

JSON

  • data - The job token scope allowlist data retrieved from the GitLab API, typically an array of allowed job token scopes or related information.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and accessible with the authenticated user or token.
  • Verify that the GitLab API key credential is correctly configured and has sufficient permissions to access the project's job token scope allowlist.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If pagination parameters are used, ensure they are valid integers to avoid API errors.

Links

Discussion