GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to download a secure file from a specific project in GitLab using the GitLab API. It is useful in scenarios where automated workflows need to retrieve secure files stored in GitLab projects, such as configuration files, certificates, or other sensitive data. For example, a DevOps pipeline could use this node to fetch secure files required for deployment.

Use Case Examples

  1. Download a secure file from a GitLab project by specifying the project ID and secure file ID.
  2. Automate retrieval of secure files for integration with other systems or processes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
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.
Path Parameters Parameters to specify the project ID and secure file ID for the download request.

Output

Binary

The node outputs the downloaded secure file as binary data, allowing it to be saved or processed further in the workflow.

JSON

  • id - The project ID used in the request path.
  • secure_file_id - The secure file ID used in the request path.
  • fileData - The binary content of the downloaded secure file.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and secure file ID are correct and accessible by the authenticated user to avoid authorization errors.
  • If skipping authentication, verify that the GitLab instance allows unauthenticated access to the secure file, otherwise the request will fail.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion