GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the signature of a specific tag in a GitLab project's repository using the GitLab API. It is useful for verifying the authenticity and integrity of tags in a project's repository, which is important for security and release management. For example, a user can fetch the signature of a release tag to ensure it has not been tampered with before deploying the release.

Use Case Examples

  1. Fetch the signature of a tag named 'v1.0.0' in a project with ID '12345' to verify its authenticity.
  2. Use the node to automate the validation of tag signatures in a CI/CD pipeline to enhance security.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for 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 The HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters required in the API request path to specify the project and tag.

Output

JSON

  • signature - The signature details of the specified tag in the project repository.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and tag name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential has sufficient permissions to access the project's repository tags.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages may include 404 Not Found if the project or tag does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion