GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific PyPi package file from a GitLab group using the file's SHA256 checksum and file identifier. It is useful for automating the download or inspection of PyPi package files stored in GitLab group repositories, especially when precise file verification via checksum is required.

Use Case Examples

  1. Automate fetching a PyPi package file for deployment or analysis.
  2. Verify the integrity of a PyPi package file by retrieving it using its SHA256 checksum.

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.
queryParameters.file_identifier The PyPi package file identifier, used as a query parameter to specify the exact file to retrieve.
pathParameters.id The ID or full path of the GitLab group from which the PyPi package file is retrieved.
pathParameters.sha256 The SHA256 checksum of the PyPi package file, used to uniquely identify the file in the path.

Output

JSON

  • response - The JSON response containing the details or content of the requested PyPi package file retrieved from the GitLab API.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the group ID and file identifier are correct and exist in the GitLab instance.
  • Verify the SHA256 checksum matches the file to avoid 404 or integrity errors.
  • Check authentication credentials if not skipping authentication to avoid authorization errors.
  • Confirm the base URL is correct for the GitLab instance being accessed.

Links

Discussion