GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to retrieve information about a specific Go module version package within a GitLab project. It is useful for developers or DevOps engineers who need to programmatically access metadata about Go modules stored in GitLab's package registry, such as module version details for dependency management or auditing purposes.

Use Case Examples

  1. Fetch details of a Go module version package by specifying the project ID, module name, and module version to automate dependency checks in CI/CD pipelines.
  2. Retrieve Go module version info to integrate with external tools that monitor package versions and updates.

Properties

Name Meaning
Skip Authentication Option to bypass authentication when making the API request.
Authentication Type of authentication used 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 used for the API request, default is GET.
Query Parameters Query parameters for the API request, specifically the Go module name.
Path Parameters Path parameters for the API request, including the project ID and Go module version.

Output

JSON

  • id - The project ID or full path of the project.
  • module_name - The name of the Go module.
  • module_version - The version of the Go module.
  • info - Information about the Go module version package retrieved from the GitLab API.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and module version are correctly specified as they are required path parameters.
  • Verify that the module_name query parameter is provided and correctly spelled.
  • If authentication is enabled, confirm that the GitLab API key credential is valid and has sufficient permissions to access the project and package registry.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct and accessible.

Links

Discussion