GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves package files from a specific package within a project on GitLab using the GitLab API v4. It is useful for scenarios where you need to list or manage files associated with a package in a GitLab project, such as automating package file retrieval or integrating package data into workflows.

Use Case Examples

  1. Fetching all files of a package in a GitLab project to analyze or process them.
  2. Automating the download or inspection of package files for CI/CD pipelines.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Query Parameters Optional query parameters to control pagination of the results, including page number and items per page.
Path Parameters Required path parameters to specify the project and package, including project ID or URL-encoded path and package ID.

Output

JSON

  • package_files - List of package files retrieved from the specified package in the project

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and package ID are correctly specified and URL-encoded if necessary to avoid 404 errors.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the project and package files.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Pagination parameters (page and per_page) should be set appropriately to avoid missing data or excessive data retrieval.

Links

Discussion