GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node interacts with the GitLab API to retrieve the job token scope for a specific project by its ID. It is useful for automation workflows that need to access or verify the job token permissions within a GitLab project, such as CI/CD pipeline configurations or security audits.

Use Case Examples

  1. Retrieve the job token scope of a project to check its permissions before running a CI/CD pipeline.
  2. Automate the monitoring of job token scopes across multiple projects to ensure compliance with security policies.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public or unauthenticated requests.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method used for the API request, default is GET.
Path Parameters Parameters to be included in the API request path, specifically the project ID for this operation.

Output

JSON

  • id - The ID of the project.
  • job_token_scope - The scope of the job token for the project, indicating permissions and access levels.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID is correctly provided in the path parameters; missing or incorrect ID will cause request failures.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to access project job token scopes.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct and reachable.

Links

Discussion