Create backdoor_check.yml

This commit is contained in:
Nayem Siddique 2025-07-17 22:51:23 +06:00 committed by GitHub
parent f557045fb1
commit 46af5acd07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

34
.github/workflows/backdoor_check.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Security Analysis Workflow
on: [push, pull_request]
jobs:
security-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install gitpython openai dotenv shutil
- name: Run Security Analysis
run: |
python gitdoorcheck.py --repo-url ${{ github.event.repository.html_url }} --local-repo-path ./repo --threshold 50
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Save Analysis Report
if: always()
uses: actions/upload-artifact@v2
with:
name: security-analysis-report
path: analysis-report.json