GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the signature of a specific commit in a GitLab project repository using the GitLab API. It is useful for verifying the authenticity and integrity of commits by fetching their cryptographic signatures. Practical applications include automated security checks, compliance verification, and audit trails in CI/CD pipelines or development workflows.

Use Case Examples

  1. Fetch the signature of a commit by providing the project ID and commit SHA to verify the commit's authenticity.
  2. Use in a CI/CD pipeline to automatically validate commit signatures before deployment.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the API path including project ID and commit SHA.

Output

JSON

  • signature - The cryptographic signature of the specified commit.
  • commitId - The SHA identifier of the commit.
  • verificationStatus - Status indicating if the commit signature is valid or not.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and commit SHA are correctly provided and URL-encoded if necessary.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • The commit may not have a signature, resulting in empty or null signature data.

Links

Discussion