GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the public key for web commits from the GitLab API (version 4). It is useful for scenarios where you need to access the public key used for verifying web commits in GitLab, such as in automated workflows involving commit verification or security checks.

Use Case Examples

  1. Automatically fetch the public key to verify commit signatures in a CI/CD pipeline.
  2. Retrieve the public key to display or log it for audit purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to send the request to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Parameter Schema Hidden property for the parameter schema of the request, specific to this operation.
Request Body Schema Hidden property for the request body schema, specific to this operation.
Request Path The API endpoint path for retrieving the public key, fixed to /api/v4/web_commits/public_key.

Output

JSON

  • public_key - The public key retrieved from the GitLab API for web commits.

Dependencies

  • GitLab API key credential for authentication (unless skipping authentication).

Troubleshooting

  • If authentication is required but skipped, the request may fail with authorization errors. Ensure the GitLab API key credential is configured correctly.
  • Incorrect baseUrl may lead to connection errors or 404 responses. Verify the GitLab instance URL is correct.
  • Using an unsupported HTTP method may cause the API to reject the request. Use GET as default for this operation.

Links

Discussion