GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the repository protection rules for the container registry of a specific project in GitLab. It is useful for users who want to programmatically access the protection settings of a project's container registry repository, such as to audit or automate security configurations.

Use Case Examples

  1. A DevOps engineer uses this node to fetch the container registry protection rules of a project to verify compliance with security policies.
  2. A developer automates the retrieval of repository protection rules to integrate with a custom dashboard showing project security settings.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, default is GET.
Path Parameters The path parameters for the API request, specifically the project ID or URL-encoded path.

Output

JSON

  • rules - The list of repository protection rules returned by the API for the specified project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided authentication.
  • If authentication is skipped, the API request may fail due to lack of permissions.
  • Verify the baseUrl is correctly set to the GitLab instance URL where the project resides.
  • Check that the HTTP method is set to GET as required by this operation.

Links

Discussion