GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve a Go module package in ZIP format from a specific project. It is useful for automating the download of Go module packages hosted in GitLab projects, which can be beneficial in CI/CD pipelines, dependency management, or integration workflows involving Go modules.

Use Case Examples

  1. Downloading a specific version of a Go module from a GitLab project to use in a build process.
  2. Automating the retrieval of Go module packages for dependency analysis or security scanning.

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.
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, specifically the Go module name.
Path Parameters Path parameters for the request, including the project ID or full path and the 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.
  • zip_content - The binary content of the Go module ZIP package retrieved from the API.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID or full path is correct and accessible with the provided credentials.
  • Verify the Go module name and version are accurate and exist in the specified project.
  • Check network connectivity and the base URL if using a self-hosted GitLab instance.
  • Authentication errors may occur if the API token is missing, expired, or lacks necessary permissions.

Links

Discussion