GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to send a bulk POST request to the GitLab API endpoint for npm package security advisories within a specific project. It is useful for automating the submission of multiple security advisories related to npm packages in a GitLab project, helping maintainers manage vulnerabilities efficiently.

Use Case Examples

  1. Submitting multiple npm security advisories in bulk to a GitLab project identified by its ID or URL-encoded path.
  2. Automating security advisory updates for npm packages in a CI/CD pipeline using GitLab API.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL for 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 project ID or URL-encoded path for the target GitLab project.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the authentication token is valid and has sufficient permissions to post security advisories to the project.
  • Check the request body format matches the expected schema for bulk security advisories to prevent 400 Bad Request errors.

Links

Discussion