GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the InRelease file for a specific Debian distribution within a GitLab group. It is useful for accessing Debian package metadata for a given distribution codename or suite in a GitLab-hosted package repository. For example, it can be used to automate fetching package release information for Debian packages managed in GitLab groups.

Use Case Examples

  1. Fetch the InRelease file for the 'buster' distribution in a GitLab group with ID '12345'.
  2. Automate retrieval of Debian package metadata for a custom distribution in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public repositories or testing.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Query parameters for the request, specifically the 'distribution' parameter representing the Debian Codename or Suite.
Path Parameters Path parameters for the request, specifically the 'id' parameter representing the group ID or full group path.

Output

JSON

  • id - The group ID or full group path used in the request path.
  • distribution - The Debian Codename or Suite specified as a query parameter.
  • InReleaseContent - The content of the InRelease file retrieved from the Debian distribution.

Dependencies

  • GitLab API authentication token or API key

Troubleshooting

  • Ensure the 'id' path parameter is correctly set to a valid GitLab group ID or full group path.
  • Verify the 'distribution' query parameter matches a valid Debian Codename or Suite available in the GitLab group.
  • Check that the GitLab API token has sufficient permissions to access the group's package registry.
  • If skipping authentication, ensure the repository is public and accessible without credentials.
  • Common errors include 404 Not Found if the group or distribution does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion