GitLab API

GitlabTool

Actions1000

Overview

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

Use Case Examples

  1. Downloading a Go module zip file for version v1.2.3 from a project with ID 12345.
  2. Automating the retrieval of Go module packages during a build process in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
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.
Query Parameters Query parameters for the request, specifically the Go module name.
Path Parameters Path parameters for the request, including the project ID and Go module version.

Output

Binary

The node outputs the Go module package as a binary zip file.

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.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and module version are correctly specified to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to access the project and packages.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion