GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes RPM package uploads for a specific project in GitLab via the GitLab API. It is useful for automating the process of granting permission to upload RPM packages to a project's package registry, which is essential in CI/CD pipelines or package management workflows.

Use Case Examples

  1. Automate RPM package upload authorization for a project during a CI/CD pipeline.
  2. Integrate GitLab RPM package authorization into a custom deployment or package management tool.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
Authentication Type of authentication used for the API request, 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, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path required for authorization.

Output

JSON

  • statusCode - HTTP status code returned by the API after authorization request.
  • body - Response body containing details of the authorization result or error message.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in path parameters is correct and accessible with the provided API credentials.
  • If authentication is skipped, the request may fail due to lack of permissions.
  • Verify the base URL is correct for the GitLab instance being accessed.
  • Check that the HTTP method is set to POST for this authorization operation as required by the API.

Links

Discussion