Skip to content

ryo-endo/circleci-secrets-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

circleci-secrets-exporter

Export CircleCI secrets in CSV format.
CircleCIのシークレットをCSV形式で出力するスクリプトです。

image

How to use

  1. Open main.py and overwrite the correct constants.
# CircleCI API Token https://app.circleci.com/settings/user/tokens
CIRCLECI_API_TOKEN = 'API-TOKEN-HERE'
# Output folder for csv files
OUTPUT_DIR = '/tmp'
# Organization name
ORG_NAME = 'org-name'
# VCS provider name (E.g. 'github', 'bitbucket')
VCS_TYPE = 'github'
  1. Run scripts
python ./main.py
  1. See output csv files
    Output destination is OUTPUT_DIR.
    Some csv files are created (i.e. project_envvars.csv)

Supported secrets

  • Project environment variables
  • Project Checkout SSH keys
  • Project Additional SSH keys
  • Project API tokens
  • Context variables

TODO or Not supported

  • API Pagination (= next_page_token)

About

CSV Export CircleCI Secrets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages