GitLab API

GitlabTool

Actions905

Overview

This node operation allows users to upload secure files to a specific GitLab project via the GitLab API. It is useful for automating the management of secure files within projects, such as adding sensitive configuration files or credentials securely. For example, a DevOps engineer can use this node to programmatically upload secure files to a project during a CI/CD pipeline setup.

Use Case Examples

  1. Uploading a secure file to a GitLab project to be used in CI/CD pipelines.
  2. Automating the addition of encrypted credentials or certificates to a project repository.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to specify the project ID or URL-encoded path where the secure file will be uploaded.

Output

JSON

  • response - The JSON response from the GitLab API after uploading the secure file, typically including details about the uploaded file.

Dependencies

  • Requires GitLab API key credential for authentication.

Troubleshooting

  • Ensure the project ID or path is correctly URL-encoded and valid.
  • Verify that the API key has sufficient permissions to upload secure files to the project.
  • Check that the base URL is correct if using a self-hosted GitLab instance.
  • Common errors include authentication failures, invalid project ID, or insufficient permissions.

Links

Discussion