{"id":35021800,"url":"https://github.com/deviant101/test-semgrep","last_synced_at":"2026-05-20T08:08:55.150Z","repository":{"id":327279128,"uuid":"1108635982","full_name":"deviant101/test-semgrep","owner":"deviant101","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-02T19:08:40.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-05T18:31:54.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deviant101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-02T17:58:38.000Z","updated_at":"2025-12-02T19:08:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/deviant101/test-semgrep","commit_stats":null,"previous_names":["deviant101/test-semgrep"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/deviant101/test-semgrep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deviant101%2Ftest-semgrep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deviant101%2Ftest-semgrep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deviant101%2Ftest-semgrep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deviant101%2Ftest-semgrep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deviant101","download_url":"https://codeload.github.com/deviant101/test-semgrep/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deviant101%2Ftest-semgrep/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33251405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-27T05:59:28.541Z","updated_at":"2026-05-20T08:08:55.138Z","avatar_url":"https://github.com/deviant101.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SAST Demo App with Semgrep\n\nThis is a simple Node.js Express application with **intentional security vulnerabilities** for testing Static Application Security Testing (SAST) using Semgrep in a GitHub Actions pipeline.\n\n## ⚠️ Warning\n\nThis application contains **intentional security vulnerabilities** for educational and testing purposes only. **DO NOT deploy this application in production!**\n\n## Intentional Vulnerabilities\n\nThe app includes the following vulnerabilities that Semgrep should detect:\n\n1. **SQL Injection** - User input directly concatenated into SQL query\n2. **Command Injection** - User input passed to shell command\n3. **Cross-Site Scripting (XSS)** - User input rendered in template without escaping\n4. **Hardcoded Secrets** - API keys and passwords in source code\n5. **Insecure Deserialization** - Using pickle.loads on user input\n6. **Insecure Eval / Deserialization** - using `eval` on user input\n\n## Project Structure\n\n```\n.\n├── .github/\n│   └── workflows/\n│       └── sast.yml          # GitHub Actions workflow for Semgrep\n├── app.js                      # Express application with vulnerabilities\n├── package.json                # Node dependencies\n└── README.md                  # This file\n```\n\n## GitHub Actions Pipeline\n\nThe pipeline (`.github/workflows/sast.yml`) will:\n\n1. **Checkout** the repository code\n2. **Set up Python** 3.11\n3. **Install Semgrep** CLI tool\n4. **Run Semgrep scan** with multiple rulesets:\n   - `auto` - Automatic language detection\n   - `p/security-audit` - Security-focused rules\n   - `p/python` - Python-specific rules\n5. **Display results** in the workflow logs\n6. **Upload artifacts** (JSON and text reports)\n7. **Upload SARIF** to GitHub Security tab (if available)\n\n## Running Locally\n\n### Install dependencies\n```bash\npip install -r requirements.txt\npip install semgrep\n```\n\n### Run the app (for testing only)\n```bash\npython app.py\n```\n\n### Run Semgrep locally\n```bash\n# Basic scan\nsemgrep scan --config auto .\n\n# Full security scan with output files\nsemgrep scan --config auto --config p/security-audit --config p/python --json --output results.json .\n```\n\n## Expected Semgrep Findings\n\nWhen you run the pipeline, Semgrep should detect vulnerabilities like:\n- `python.lang.security.audit.dangerous-subprocess-use`\n- `python.flask.security.injection.sql-injection`\n- `python.flask.security.injection.xss`\n- `python.lang.security.deserialization.avoid-pickle`\n- `generic.secrets.security.detected-generic-api-key`\n\n## Usage\n\n1. Push this code to a GitHub repository\n2. The workflow will automatically run on push/PR to main/master\n3. Check the \"Actions\" tab for results\n4. Download artifacts from the workflow run\n5. View security alerts in the \"Security\" tab (if SARIF upload succeeds)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeviant101%2Ftest-semgrep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeviant101%2Ftest-semgrep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeviant101%2Ftest-semgrep/lists"}