GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves Composer package information from a specific GitLab group using the GitLab API. It is useful for developers or DevOps engineers who need to access package metadata based on a group's ID and a specific SHA checksum. For example, it can be used to verify package integrity or fetch package details for automation workflows involving GitLab package registries.

Use Case Examples

  1. Fetch Composer package details for a GitLab group by providing the group's ID and the SHA checksum of the package JSON.
  2. Use in CI/CD pipelines to validate package versions and metadata before deployment.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use, 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 HTTP method to use for the API request, default is GET.
Path Parameters Parameters to specify the group ID and the SHA checksum for the Composer package request.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab group.
  • sha - The SHA checksum of the current JSON package data.
  • packageData - The retrieved Composer package information from the GitLab API response.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID and SHA parameters are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the group's package registry.
  • Check the baseUrl 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 or package SHA does not exist, or 400 bad request if parameters are malformed.

Links

Discussion