GitLab API

GitlabTool

Actions905

Overview

This node operation downloads a secure file from a specified GitLab project using the GitLab API. It is useful for automating the retrieval of secure files stored in GitLab projects, such as certificates, keys, or other sensitive files, directly within an n8n workflow.

Use Case Examples

  1. Automatically download a secure file from a GitLab project to use in a deployment pipeline.
  2. Fetch secure files for backup or auditing purposes within an automated workflow.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET.
Path Parameters Parameters used in the request path to specify the project and secure file to download.

Output

JSON

  • fileContent - The content of the downloaded secure file.
  • fileName - The name of the downloaded secure file.
  • fileType - The MIME type or format of the downloaded secure file.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and secure file ID are correct and accessible by the authenticated user.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the secure file.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the project or secure file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion