GitLab API

GitlabTool

Actions905

Overview

This node operation authorizes a NuGet package for a specific project in GitLab using the GitLab API. It is useful for automating package authorization workflows in CI/CD pipelines or project management tasks where NuGet packages need to be managed programmatically within GitLab projects.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, 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.
Parameter Schema Schema for path parameters, specifically the project ID or URL-encoded path, required for the request.
Request Body Schema Schema for the request body, if applicable, default is null.
Request Path API endpoint path for authorizing NuGet packages in a project, with a placeholder for project ID.
Path Parameters Collection of path parameters including the project ID required for the API call.

Output

JSON

  • response - The JSON response from the GitLab API after authorizing the NuGet package.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

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

Links

Discussion