GitLab API

GitlabTool

Actions905

Overview

This node operation performs a bulk POST request to the GitLab API endpoint for security advisories related to NPM packages within a specific group. It is useful for automating the submission of multiple security advisories in bulk to a GitLab group, which can help maintainers manage vulnerabilities efficiently.

Use Case Examples

  1. Submitting multiple NPM security advisories to a GitLab group in one API call to streamline vulnerability management.
  2. Automating security advisory updates for NPM packages in a GitLab group as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but here used as POST for this operation.
Parameter Schema Defines the path parameter 'id' which is the ID or URL-encoded path of the GitLab group.
Request Body Schema Schema for the request body payload to be sent in the POST request.
Request Path The API endpoint path for the bulk security advisories POST request.
Path Parameters Collection of path parameters including 'id' which specifies the group ID or path.

Output

JSON

  • response - The JSON response from the GitLab API after submitting the bulk security advisories.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the 'id' path parameter is correctly set to the GitLab group ID or URL-encoded path to avoid 404 errors.
  • Verify that the API key credential has sufficient permissions to post security advisories to the group.
  • Check the request body schema matches the expected format for bulk security advisories to prevent validation errors.

Links

Discussion