GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes access to job artifacts in GitLab by sending a POST request to the endpoint `/api/v4/jobs/{id}/artifacts/authorize`. It is useful in scenarios where you need to programmatically authorize artifact downloads for specific CI/CD jobs in GitLab, such as automating artifact management or integrating artifact authorization into workflows.

Use Case Examples

  1. Automate artifact authorization for a CI job with ID 123 in GitLab.
  2. Integrate GitLab job artifact authorization into a deployment pipeline to ensure secure artifact access.

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 to which the request is sent.
Method HTTP method used for the request, default is POST for this operation.
Path Parameters Parameters included in the request path, specifically the job ID to authorize artifacts for.

Output

JSON

  • statusCode - HTTP response status code from the GitLab API.
  • body - Response body containing authorization details or error information.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the job ID provided in the path parameters is valid and exists in the GitLab project.
  • Verify that the API key used for authentication has sufficient permissions to authorize job artifacts.
  • Check the base URL to confirm it points to the correct GitLab instance.
  • If skipping authentication, ensure the endpoint allows unauthenticated access, otherwise the request will fail.

Links

Discussion