GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves RubyGem package dependencies for a specific project from the GitLab API. It is useful for developers or DevOps engineers who want to programmatically access dependency information of RubyGem packages associated with a GitLab project. For example, it can be used to automate dependency checks or integrate dependency data into CI/CD pipelines.

Use Case Examples

  1. Fetch RubyGem dependencies for a project by providing the project ID and optionally filtering by specific gem names.
  2. Use the node to monitor and audit RubyGem dependencies in GitLab projects automatically.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the API request.
Authentication Select the authentication method to use for the API request. Hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to send the API request to. Defaults to https://gitlab.com.
Method The HTTP method to use for the API request. Defaults to GET.
Query Parameters Optional query parameters for the API request, including 'gems' which is a comma-delimited list of gem names to filter dependencies.
Path Parameters Path parameters for the API request, including 'id' which is the ID or URL-encoded path of the project.

Output

JSON

  • dependencies - List of RubyGem package dependencies returned by the API for the specified project.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided authentication.
  • If authentication is skipped, the API request may fail due to lack of permissions.
  • Verify that the baseUrl is correct and reachable.
  • Check that the 'gems' query parameter, if used, is formatted as a comma-delimited string of gem names.

Links

Discussion