From 46af5acd079650cd39eac5b8631f5597ad15cb65 Mon Sep 17 00:00:00 2001 From: Nayem Siddique Date: Thu, 17 Jul 2025 22:51:23 +0600 Subject: [PATCH] Create backdoor_check.yml --- .github/workflows/backdoor_check.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/backdoor_check.yml diff --git a/.github/workflows/backdoor_check.yml b/.github/workflows/backdoor_check.yml new file mode 100644 index 000000000..1ecf9840a --- /dev/null +++ b/.github/workflows/backdoor_check.yml @@ -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