GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows uploading secure files to a specific project in GitLab via the GitLab API. It is useful for managing sensitive files within a project, such as credentials or configuration files, that need to be securely stored and accessed. For example, a DevOps engineer might use this node to automate the upload of secure files to a GitLab project as part of a CI/CD pipeline.

Use Case Examples

  1. Uploading a secure file to a GitLab project to be used in CI/CD jobs.
  2. Automating the management of secure files in GitLab projects for better security and version control.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to 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 for the secure file upload.

Output

JSON

  • id - The ID of the uploaded secure file.
  • name - The name of the secure file.
  • size - The size of the secure file in bytes.
  • created_at - Timestamp when the secure file was created.
  • updated_at - Timestamp when the secure file was last updated.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the authentication credentials are valid and have the necessary permissions to upload secure files to the project.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion