Export CircleCI secrets in CSV format.
CircleCIのシークレットをCSV形式で出力するスクリプトです。
- 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'
- Run scripts
python ./main.py
- See output csv files
Output destination is OUTPUT_DIR.
Some csv files are created (i.e. project_envvars.csv)
- Project environment variables
- Project Checkout SSH keys
- Project Additional SSH keys
- Project API tokens
- Context variables
- API Pagination (= next_page_token)