Skip to main content

Security Compliance Platform CLI - Secure your code from the terminal.

Project description

Security Scanners

The platform integrates four industry-standard security scanners:

  1. Semgrep - Multi-language static analysis

    • Supports 18+ languages: Python, JavaScript, TypeScript, Java, Go, Ruby, PHP, C/C++, C#, Rust, Kotlin, Scala, Swift
    • Uses Semgrep Registry community rules
    • OWASP Top 10 and CWE coverage
  2. Bandit - Python static security analysis

    • Detects hard-coded secrets, SQL injection, shell injection, insecure crypto
    • 68+ built-in security checks
    • Severity-based risk scoring
  3. Checkov - Infrastructure as Code security

    • Scans Terraform, Dockerfile, Kubernetes, CloudFormation
    • 1000+ built-in policies (CIS, PCI-DSS, HIPAA compliance)
    • Identifies misconfigurations before deployment
  4. pip-audit - Python dependency vulnerability scanning

    • Checks for known CVEs in dependencies
    • Uses PyPI Advisory Database
    • Provides upgrade recommendations

Scanner Workflow

  1. Repository is cloned to temporary directory
  2. All applicable scanners run in parallel
  3. Findings are aggregated and stored in database
  4. Risk score calculated based on severity (0-10 scale)
  5. Temporary files cleaned up

The platform includes a powerful CLI script to trigger scans and resolutions directly from your terminal.

1. Installation

Recommended: Quick Install (curl)

curl -sSL https://raw.githubusercontent.com/maxwellsarpong/Code-Security-platform/main/install.sh | bash

**Using uv (Isolated)**
```bash
uv tool install scp-cli

Using pip

pip install scp-cli --upgrade

2. Usage

Get your API key from the dashboard

Running the CLI tool

# Showing the help menu
scp-cli --help

# Authenticate (Set your API key)
scp-cli auth --key <YOUR_API_KEY>

# Start a remote scan
scp-cli scan https://github.com/owner/repo

# Start a local workspace scan (automatic zipping & upload)
scp-cli scan .

# Check scan status (summarized results)
scp-cli status <scan_id>

# CI/CD: Wait for scan completion and verify results
# --fail: Exit with code 1 if matches are found
# --severity: Minimum severity (LOW, MEDIUM, HIGH, CRITICAL)
scp-cli check <scan_id> --severity HIGH --fail

# List all security issues for a scan (get Finding IDs)
scp-cli findings <scan_id>

# Resolve findings (Bulk fix for a scan)
# - For remote repos: Creates a Pull Request and returns the URL.
# - For local scans: Generates and applies fixes directly to your files (with backups).
scp-cli resolve <id_or_finding_id>

# Check all successfully resolved findings
scp-cli resolved

# Get the PR URL for a specific resolved finding
scp-cli pr <finding_id>

# Check your quota
scp-cli usage

# Check current authentication status
scp-cli whoami

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

scp_cli-0.1.12.tar.gz (77.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scp_cli-0.1.12-py3-none-any.whl (74.8 kB view details)

Uploaded Python 3

File details

Details for the file scp_cli-0.1.12.tar.gz.

File metadata

  • Download URL: scp_cli-0.1.12.tar.gz
  • Upload date:
  • Size: 77.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for scp_cli-0.1.12.tar.gz
Algorithm Hash digest
SHA256 4ac5bb16d9056a178c435381e6d84958aa65d929e0afbb802d7614abb8869797
MD5 2f882671b6ebc9cee32e4b8a90e8193c
BLAKE2b-256 012d1e1e9dd447149c7264d919c274a36b34ec4955ff0ebfd7b5f12bda6d3304

See more details on using hashes here.

File details

Details for the file scp_cli-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: scp_cli-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 74.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for scp_cli-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 bb50e8f6deab7806d2d7f266263a639b7d21423568c3524e9f939aaeb391c5bd
MD5 a85b59b265d9617fa6677992e6c4457c
BLAKE2b-256 bec096e123b70b0b3a745834384d39a1ba44a7a3ec5dd636bf63051da6e8220e

See more details on using hashes here.

Supported by

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