mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 15:24:03 +02:00
34 lines
844 B
YAML
34 lines
844 B
YAML
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
|