GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to retrieve Composer package archives for a specific project. It is useful for developers or DevOps engineers who need to programmatically access Composer package archives stored in GitLab projects. For example, it can be used to automate the retrieval of package archives for deployment or analysis.

Use Case Examples

  1. Fetching a Composer package archive by specifying the project ID, package name, and SHA checksum.
  2. Automating the download of Composer packages from GitLab for continuous integration pipelines.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request.
Query Parameters Parameters sent in the query string of the API request.
Path Parameters Parameters included in the URL path of the API request.

Output

JSON

  • response - The JSON response from the GitLab API containing the requested Composer package archive data.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and package name are correctly URL-encoded to avoid 404 errors.
  • Verify that the SHA checksum matches the package version to retrieve the correct archive.
  • Check that the GitLab API token has sufficient permissions to access the project's packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the package archives.

Links

Discussion