Skip to content

simple command line tool helper to integrate with hashicorp vault & github api

Notifications You must be signed in to change notification settings

titikterang/cicd-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

  • CI/CD Toolkit is small command line tool helper to integrate with vault secret kv management & github api
  • We can use simple command to generate json/env/raw text file from vault secret kv
  • Or to verify github PR approval status and then merge PR if pull request approval is validated

Build

make build

it will build two binaries, binary file for linux and binary based on local OS

Generate json file from vault

./cmd/toolkit/toolkit  -vault -output=conf.json -secret=vaultkv/data/yourdata

Generate env file from vault

./cmd/toolkit/toolkit  -vault  -env -secret=vaultkv/data/envdata

Generate raw text file from vault

./cmd/toolkit/toolkit  -vault  -raw -secret=vaultkv/data/rawtextfile

Verify github PR approval

./cmd/toolkit/toolkit -approval -repo=ujunglangit-id/some-repo -id=23

Merge github pull request

./cmd/toolkit/toolkit -merge -repo=ujunglangit-id/some-repo -id=23

Merge squash github pull request

./cmd/toolkit/toolkit  -debug -squash -repo=ujunglangit-id/some-repo -id=23

Hashicorp vault secret kv management


https://www.vaultproject.io/api-docs

Github api integration for pr status check & merging


https://docs.github.com/en/rest/reference/pulls

About

simple command line tool helper to integrate with hashicorp vault & github api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published