GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes NuGet package access for a specific project in GitLab by sending a PUT request to the GitLab API endpoint `/api/v4/projects/{id}/packages/nuget/authorize`. It is useful for automating package authorization workflows in CI/CD pipelines or project management tasks where NuGet package permissions need to be managed programmatically.

Use Case Examples

  1. Automate NuGet package authorization for a project during deployment.
  2. Integrate GitLab NuGet package authorization into a custom DevOps workflow.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the request.
Authentication The authentication method to use for the request, typically a GitLab API key credential.
baseUrl The base URL of the GitLab instance to send the request to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but can be set to PUT for this operation.
Path Parameters The path parameters for the request, specifically the project ID or URL-encoded path required to identify the project for NuGet package authorization.

Output

JSON

  • authorized - Indicates whether the NuGet package authorization was successful.
  • token - The authorization token returned by GitLab for NuGet package access.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided authentication.
  • Verify that the GitLab API key credential has sufficient permissions to authorize NuGet packages for the project.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this endpoint, otherwise the request will fail with an authentication error.

Links

Discussion