GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to download a specific Go module version package from a GitLab project using the GitLab API. It is useful for developers or CI/CD pipelines that need to fetch Go module packages directly from a GitLab repository. For example, it can be used to automate the retrieval of Go module zip files for dependency management or deployment purposes.

Use Case Examples

  1. Downloading a Go module version zip file from a GitLab project to use in a build process.
  2. Automating the retrieval of specific Go module versions for testing or deployment.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication. This property is hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Query Parameters Query parameters for the request, including the Go module name (module_name).
Path Parameters Path parameters for the request, including the project ID or full path (id) and the Go module version (module_version).

Output

JSON

  • response - The response from the GitLab API containing the Go module zip file data.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID or full path (id) is correct and accessible with the provided credentials.
  • Verify the Go module name (module_name) and version (module_version) exist in the project.
  • Check that the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • If skipping authentication, ensure the project and package are publicly accessible.
  • Common errors include 404 Not Found if the module or version does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion