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 details)

Uploaded Source

Built Distribution

shift_left_secure-0.2.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file shift_left_secure-0.2.3.tar.gz.

File metadata

  • Download URL: shift_left_secure-0.2.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Darwin/22.3.0

File hashes

Hashes for shift_left_secure-0.2.3.tar.gz
Algorithm Hash digest
SHA256 413f3a0470bc843d086516d3cb6a05eb24f17739a6563dc869227d356c75b74b
MD5 0a38d0260439f790cc98f29c9af5f1dd
BLAKE2b-256 f21c3eeda2b0ff8c6b869d84cbb7a35df3908e417519525e45439f34d3053945

See more details on using hashes here.

File details

Details for the file shift_left_secure-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for shift_left_secure-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a9f07ca33f41a314837876e9eaf16dcbfcf4dde55c95d7649d1987e69b9160c1
MD5 35fea175f1080bbbe27fae42f80ac9bb
BLAKE2b-256 13183caa6c0a94ac42c859d843974492f04109504a7a97b1fd3fa66a0c58c191

See more details on using hashes here.

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