Skip to content

Merge remote branch: resolve conflicts + fix bugs for production read… #109

Merge remote branch: resolve conflicts + fix bugs for production read…

Merge remote branch: resolve conflicts + fix bugs for production read… #109

Workflow file for this run

name: Security Scan
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
schedule:
# Run weekly on Monday at 00:00 UTC
- cron: '0 0 * * 1'
workflow_dispatch: # Allow manual trigger
permissions:
contents: read
security-events: write
jobs:
bandit:
name: Bandit Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Bandit
run: pip install bandit[toml]
- name: Run Bandit security scan
run: |
bandit -r app/ -f json -o bandit-report.json || true
bandit -r app/ -f screen
continue-on-error: true
- name: Upload Bandit results
uses: actions/upload-artifact@v4
if: always()
with:
name: bandit-report
path: bandit-report.json
safety:
name: Safety Dependency Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Safety
run: pip install safety
- name: Check dependencies with Safety
run: |
safety check -r requirements.txt --json > safety-report.json || true
safety check -r requirements.txt
continue-on-error: true
- name: Upload Safety results
uses: actions/upload-artifact@v4
if: always()
with:
name: safety-report
path: safety-report.json
codeql:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3