Skip to main content

Mitigate vulnerabilities before pushing code to github/gitlab/bitbucket

Project description

Shift Left N Secure

Secure your project source code before pushing commits to github/gitlab/bitbucket. Project helps Software Development team to use shift left approach to find and mitigate issues at an early stage instead of taking action once code reaches to the production.

Installation

Using Pip

  • From PyPi

    python -m pip install -U shift_left_secure
    
  • From Github

    python -m pip install git+https://github.com/dmdhrumilmistry/Shift-Left-Secure.git
    

Using Git Clone for Development

  • Clone repo

    git clone https://github.com/dmdhrumilmistry/Shift-Left-Secure.git
    
  • change directory

    cd Shift-Left-Secure
    
  • Install project

    python -m pip install -e . 
    

Usage

  • Add your ChatGPT API key to environment variable

    export OPEN_API_KEY=KEY
    
  • Use help to view options

    $ python -m shift_left_secure -h
    usage: shift_left_secure [-h] -d DIRECTORY [-c COMMITS] [-o OUTPUT_PATH]
    
    options:
    -h, --help            show this help message and exit
    -d DIRECTORY, --directory DIRECTORY
                            directory of git project
    -c COMMITS, --commit_hash COMMITS
                            no of commits to be analyzed from current HEAD
    -o OUTPUT_PATH, --output OUTPUT_PATH
                            output path to json file
    
  • Start analyzing changes between commits using below cmd:

    python -m shift_left_secure -d 'path_to_git_project' -c 1 -o test.json
    

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

shift_left_secure-0.2.3.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

shift_left_secure-0.2.3-py3-none-any.whl (7.5 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