GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific Debian package source file from a GitLab group using the SHA256 hash of the file. It is useful for automating the retrieval of Debian package sources in CI/CD pipelines or package management workflows within GitLab groups.

Use Case Examples

  1. Fetch the source file of a Debian package by specifying the group ID, distribution codename, component, and the SHA256 hash of the file to verify package integrity and automate deployment processes.
  2. Use this operation to programmatically access Debian package sources stored in GitLab for auditing or replication purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API 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.
distribution The Debian Codename or Suite to specify the distribution of the package.
id The group ID or full group path in GitLab to identify the group containing the package.
component The Debian Component (e.g., main) to specify the package component.
file_sha256 The SHA256 hash of the file to uniquely identify the Debian package source file.

Output

JSON

  • id - The group ID or full group path.
  • distribution - The Debian Codename or Suite.
  • component - The Debian Component.
  • file_sha256 - The SHA256 hash of the Debian package source file.
  • package_source_file - The retrieved Debian package source file content or metadata.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the group ID or full group path is correct to avoid 404 errors.
  • Verify the distribution, component, and file_sha256 parameters are accurate and correspond to existing Debian package sources.
  • Check that the GitLab API credentials are valid and have sufficient permissions to access the group packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the requested resource.

Links

Discussion