Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postpipe

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postpipe

An helper bot for deploying API collections to pipelines

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Image

API Collection to CI

Overview

This project is a spin-off of this amazing Python Package find the parent repository here. This brilliant SDET Seyi 'nexus' Ajadi conceived the idea to ensure that engineers can focus on testing and creating collections while pipeline config will be handled via a simple Q&A. I merely expanded it to work on more pipelines.

postPipe removes the hassle of manually uploading Postman collections, whether they are from a UID or a saved file, into your CI/CD pipeline on GitHub, GitLab, or Bitbucket. It automates the process of exporting collections, setting up the required YAML pipeline, and making the initial commit, allowing you to focus on development rather than CI configuration.

Prerequisites

To use postPipe, you will need:

  • Postman API Key.
  • GitHub Setup: GitHub Personal Access Token
  • GitLab Setup: GitLab Personal Access Token
  • Bitbucket Setup: Bitbucket App Password

Retrieving Postman API KEY

  • Login to Postman Web or Desktop
  • Click on the desired collection
  • Click on Run
  • Check the Automate runs via CLI radio button
  • Click on Add API Key
  • Click Generate Key
  • Insert a name and click Generate
  • Copy the Postman API Key

Creating and Retrieving Tokens and App Password

GitHub

  • Login to GitHub
  • Click on your profile picture in the upper-right corner, then click Settings.
  • Scroll down and select Developer settings.
  • Click Personal access tokens on the left menu, then click classic tokens or fine grained tokens.
  • Click "Generate new token", name it, set the expiration(or create a never expiring one).
  • Select scopes (like repo and workPipe, you can select all(recommended)). Click Generate token and copy the token.
  • Save the token somewhere secure as once lost, it cannot be retrieved

GitLab

  • Login to GitLab
  • Click on your profile picture in the upper-left corner and select Edit profile or Preference.
  • Click Access tokens on the left side bar
  • Click on Add new token
  • Name it, set expiration, and check all boxes.
  • Save the token somewhere secure as once lost, it cannot be retrieved

Bitbucket

  • Login to Bitbucket
  • Click the Settings icon on the upper-right corner
  • Click Personal Bitbucket Settings
  • Click App passwords
  • Name and create an app password and check all boxes
  • Save the token somewhere secure as once lost, it cannot be retrieved

Environment Variables Setup

Windows

setx GITHUB_TOKEN "your_github_token"
setx POSTMAN_API_KEY "your_postman_api_key"

MacOS/Linux

export GITHUB_TOKEN="your_github_token"
export POSTMAN_API_KEY="your_postman_api_key"

[!NOTE] For GitLab and Bitbucket, replace GITHUB with GITLAB or BITBUCKET to have GITLAB_TOKEN or BITBUCKET_TOKEN

Usage

  • postPipe to run generally whereby the user can select from the three pipelines
  • postPipe --github to run a GitHub setup pipeline.
  • postPipe --gitlab to run a GitLab setup pipeline.
  • postPipe --bitbucket to run a Bitbucket setup pipeline.

Keywords

FAQs

Package last updated on 19 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc