Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DevSecOps Analyzer

A modular Flask-based backend that scans code for security issues and configuration errors using Trivy, Gitleaks, and yamllint. Built with containerization, CI/CD pipelines, and automated deployment in mind.

πŸš€ Features πŸ” Container image vulnerability scanning via Trivy

πŸ”‘ Secrets detection via Gitleaks

πŸ“„ YAML linting for config hygiene

🐳 Dockerized with clean build context

πŸ” CI/CD ready using GitHub Actions

🧰 Tech Stack

Tool Purpose Flask Backend API server Trivy Container vulnerability scanner Gitleaks Secrets detection in code yamllint Linting YAML configuration files Docker Containerization GitHub Actions CI/CD Pipeline πŸ› οΈ Installation & Usage

  1. Clone the repo: bash git clone https://github.com//devsecops-analyzer.git cd devsecops-analyzer
  2. Build Docker image: bash docker build . -t devsecops-analyzer
  3. Run the container: bash docker run -p 5000:5000 devsecops-analyzer Access Flask API at http://localhost:5000

πŸ” Run Security Scans (Locally)

Gitleaks: bash curl -sSL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks-linux-amd64 -o gitleaks chmod +x gitleaks ./gitleaks detect --source . --no-banner Trivy: bash curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh ./trivy image devsecops-analyzer βš™οΈ GitHub Actions Workflow Located in .github/workflows/final.yml

CI flow includes: βœ… Build Docker image from correct subfolder

βœ… Timestamped image tagging

βœ… Ready for integration with security scans

Example CI snippet:

yaml

  • name: Build Docker image run: | cd devsecops-analyzer docker build . -t devsecops-analyzer:$(date +%s) πŸ§ͺ API Folder Structure devsecops-analyzer/ β”œβ”€β”€ Dockerfile β”œβ”€β”€ app/ β”‚ └── main.py β”œβ”€β”€ requirements.txt β”œβ”€β”€ uploads/ └── run.sh

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages