GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific RubyGem package file from a GitLab project using the GitLab API v4. It is useful for automating the download or inspection of RubyGem packages stored within GitLab projects, especially in CI/CD pipelines or package management workflows.

Use Case Examples

  1. Download a RubyGem package file from a GitLab project by specifying the project ID and the package file name.
  2. Automate the retrieval of RubyGem package files for auditing or deployment purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the API path to identify the project and the RubyGem package file.

Output

JSON

  • data - The retrieved RubyGem package file data or metadata from the GitLab API response.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and file name are correctly specified and URL-encoded if necessary.
  • Verify that the API authentication token has sufficient permissions to access the project and its packages.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Common errors include 404 Not Found if the project or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion