GitLab API

GitlabTool

Actions905

Overview

This node operation performs a quick security audit on npm packages within a specified GitLab group. It is useful for developers and DevOps teams who want to quickly check for vulnerabilities in npm packages associated with their GitLab groups. For example, it can be used to automate security checks in CI/CD pipelines to ensure package safety before deployment.

Use Case Examples

  1. Automate npm package security audits for a GitLab group during CI/CD.
  2. Quickly identify vulnerabilities in npm packages used by a development team within a GitLab group.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
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 to use for the request, default is GET but POST is used for this operation.
Parameter Schema Schema defining the path parameter 'id' which is the ID or URL-encoded path of the GitLab group.
Request Body Schema Schema for the request body, not defined (null) for this operation.
Request Path API endpoint path for the quick security audit of npm packages in a GitLab group.
Path Parameters Collection of path parameters including 'id' which specifies the GitLab group ID or URL-encoded path.

Output

JSON

  • response - The JSON response from the GitLab API containing the results of the npm security audit.

Dependencies

  • Requires GitLab API key credential for authentication unless skipping authentication.

Troubleshooting

  • Ensure the 'id' path parameter is correctly set to the GitLab group ID or URL-encoded path to avoid 404 errors.
  • If authentication is not skipped, ensure the GitLab API key credential is valid and has sufficient permissions to access the group's npm packages.
  • Check network connectivity and baseUrl correctness if the API request fails to reach the GitLab server.

Links

Discussion