GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes access to a specific file within a generic package version in a GitLab project. It is useful for managing package files in GitLab repositories, especially when you need to control or verify access to package files programmatically. For example, it can be used in CI/CD pipelines to authorize package file downloads or uploads securely.

Use Case Examples

  1. Authorize access to a package file in a GitLab project before downloading it.
  2. Automate package file authorization in a deployment workflow to ensure proper permissions.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the request path to identify the project, package, and file.

Output

JSON

  • authorized - Indicates whether the file authorization was successful.
  • message - Additional message or information about the authorization result.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID, package name, and file name are correctly specified to avoid 404 errors.
  • Check that the authentication token has sufficient permissions to authorize package files.
  • If skipping authentication, verify that the GitLab instance allows unauthenticated access for this operation.

Discussion