GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes Helm charts for a specific project and Helm channel in GitLab. It is useful for managing Helm package permissions within GitLab projects, allowing users to programmatically authorize access to Helm charts in a given project and channel. For example, it can be used in CI/CD pipelines to automate Helm chart authorization as part of deployment workflows.

Use Case Examples

  1. Authorize Helm charts for project ID 123 on the 'stable' Helm channel to control access permissions.
  2. Automate Helm chart authorization in GitLab projects during continuous integration processes.

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 API request, default is GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters to specify the project ID and Helm channel for the authorization request.

Output

JSON

  • statusCode - HTTP status code of the API response indicating success or failure.
  • body - Response body containing details about the authorization result or error messages.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and Helm channel parameters are correctly set and valid to avoid 404 or 400 errors.
  • Verify that the GitLab API key credential has sufficient permissions to authorize Helm charts in the specified project.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this endpoint, otherwise authentication errors will occur.

Links

Discussion