Skip to main content

A command line application that encrypts passwords for use with Travis CI.

Project description

travis/images/header.png

travis coverage dependencies codacy version status pyversions format license

Travis Encrypt is a Python command line application that provides a way to encrypt passwords and environment variables for use with Travis CI. This application intends to be a replacement for the Travis Ruby client as that client is not maintained and does not provide detail regarding password encryption.

All passwords and environment variables are encrypted with the PKCS1v15 padding scheme until Travis-CI updates its protocols.

Installation

To install Travis Encrypt simply run the following command in a terminal window:

$ pip install travis-encrypt

If you would rather install from source, run the following commands in a terminal window:

$ git clone https://github.com/mandeep/Travis-Encrypt.git
$ cd Travis-Encrypt
$ python setup.py install

Travis Encrypt will attempt to install the cryptography package, however the package requires headers for Python. If installation fails, please see the cryptography installation guide: https://cryptography.io/en/latest/installation/

Usage

With Travis Encrypt installed, the command line application can be invoked with the following command and mandatory arguments:

travis-encrypt [OPTIONS] GITHUB_USERNAME REPOSITORY PATH

Example of password encryption:

travis-encrypt mandeep Travis-Encrypt /home/user/.travis.yml

Example of environment variable encryption:

travis-encrypt --env mandeep Travis-Encrypt /home/user/.travis.yml

The application will then issue a mandatory password prompt. Once the password is filled, Travis Encrypt will write the encrypted password or environment variable to the given .travis.yml file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

travis-encrypt-0.3.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

travis_encrypt-0.3.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page