GitLab API

GitlabTool

Actions1000

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 their NPM packages managed under a GitLab group. 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 quick security audits of NPM packages in a GitLab group during CI/CD workflows.
  2. Manually trigger a security audit to identify vulnerabilities in group-managed NPM packages.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to specify the group ID or URL-encoded path for the audit.

Output

JSON

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

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the group ID parameter is correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the group's NPM packages.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages may include authentication failures, invalid group ID, or permission denied errors. Resolving these typically involves correcting credentials, parameters, or access rights.

Links

Discussion