GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific RubyGems package file from a GitLab project using the GitLab API. It is useful for developers or automation workflows that need to access RubyGems package files stored in GitLab projects, for example, to download or inspect gemspec files programmatically.

Use Case Examples

  1. A CI/CD pipeline fetching a RubyGems package file from a GitLab project to verify its contents before deployment.
  2. An automation workflow that downloads RubyGems package files for backup or analysis.

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 authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Path Parameters Parameters to specify the project ID and the gemspec file name to retrieve.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • file_name - The gemspec file name retrieved.
  • response - The response data from the GitLab API containing the RubyGems package file content.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and file name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key has sufficient permissions to access the project's packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the package files.
  • Common error messages may include 404 Not Found if the project or file does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion