GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to retrieve Composer packages for a specific group identified by its ID or URL-encoded path. It is useful for automating the retrieval of package information from GitLab groups, which can be beneficial in CI/CD pipelines, package management, or auditing package usage within groups.

Use Case Examples

  1. Retrieve all Composer packages for a GitLab group by specifying the group's ID or path.
  2. Automate the monitoring of Composer packages in a GitLab group to ensure compliance or update dependencies.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication to use for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, defaulting to GET.
Path Parameters Parameters to be included in the request path, specifically the group ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab group for which Composer packages are retrieved.
  • packages - List of Composer packages associated with the specified GitLab group.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID or path is correctly URL-encoded to avoid request errors.
  • Verify that the GitLab API key has sufficient permissions to access group packages.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include authentication failures, 404 not found if the group ID/path is incorrect, or permission denied errors. Verify credentials and group access rights to resolve these issues.

Links

Discussion