GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific NPM package file from a GitLab project using the GitLab API. It is useful for scenarios where you need to programmatically access or download a particular package file stored in a project's NPM packages on GitLab. For example, it can be used in CI/CD pipelines to fetch package files for deployment or analysis.

Use Case Examples

  1. Fetching a specific NPM package file from a GitLab project by providing the project ID, package name, and file name.
  2. Automating the download of package files from GitLab for integration into other systems.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication to use, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.
Query Parameters Parameters to specify the package name and file name to retrieve.
Path Parameters Parameter to specify the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the project from which the package file is retrieved.
  • package_name - The name of the NPM package to retrieve.
  • file_name - The specific file name of the package to retrieve.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, package name, and file name are correctly specified to avoid 404 Not Found errors.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to access the project and its packages.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct and accessible.

Links

Discussion