GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes a file for a specific version of a Terraform module within a GitLab project. It is useful for managing Terraform modules stored in GitLab's Terraform Registry, allowing users to programmatically authorize files related to module versions. For example, it can be used in CI/CD pipelines to automate the authorization of module files before deployment.

Use Case Examples

  1. Automate authorization of Terraform module files in GitLab projects during CI/CD workflows.
  2. Manage access control for specific versions of Terraform modules in GitLab Terraform Registry.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID or full path, module name, and module system for the Terraform module.

Output

JSON

  • response - Response from the GitLab API for the file authorization request.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, module name, and module system path parameters are correctly set to avoid 404 errors.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials are correctly configured.
  • HTTP method must be set appropriately; using GET instead of PUT may result in unexpected behavior.

Links

Discussion