Skip to main content

Scan development configs for security misconfigurations

Project description

DevSecLint 🛡️

A secure config scanner for developers. Scans .env, Dockerfile, Kubernetes, and more for misconfigurations — with optional AI-powered fixes (Gemini).

Features

  • 🔍 Detect secrets in .env
  • 🐳 Scan Dockerfiles for bad practices
  • ☸️ Validate Kubernetes YAML for securityContext
  • 🤖 AI remediation suggestions (Google Gemini)
  • ✅ CLI + Python API + GitHub Action ready

🔧 Install

pip install devseclint

Or locally:

pip install -e .

🚀 CLI Usage

devseclint scan .

Optional flags:

--ai-fix → show AI suggestions

--fix → auto-rewrite files (uses Gemini)

--ci → CI-friendly JSON output

🧠 AI Fixes (Gemini)

Set your API key:

export GEMINI_API_KEY=your-key-here

or

  • change the template.env to .env and add GEMINI_API_KEY

Then run:

devseclint scan . --ai-fix
devseclint scan . --fix

📦 Python API

from devseclint.scanner import scan_directory

results = scan_directory("/path/to/code")
for issue in results:
    print(issue)

✅ GitHub Action

- name: Run DevSecLint
  run: python cli.py scan . --ci
  • SAMPLE TEMPLATE IN template.github, change to .github

📄 License

MIT © Rohan Shaw

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

devseclint-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

devseclint-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file devseclint-0.1.0.tar.gz.

File metadata

  • Download URL: devseclint-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for devseclint-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4860827328b2fa88b45df85e4a75ce6dc9eb47216dee268731a98e2b53a5e599
MD5 65f7351b742064b3763dd0ac98169b87
BLAKE2b-256 04088e2d1144ad575c09adaf4c5d1a191a7b62f82518616a2fef961a9742febb

See more details on using hashes here.

File details

Details for the file devseclint-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: devseclint-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for devseclint-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c2c84cb04219bcdc36ab3b7f597d4b5758fa82deee6f47998c4975e1ea3ec4c
MD5 9044a3c60770d59272258fc86b552a19
BLAKE2b-256 9ce93b4c54145b25bbec87fd092c79cdafcdd80ac5242fcc6b95da62c816eafb

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