Files
timemaster/.gitea/workflows/security.yml
T
patrickandClaude Sonnet 5 ad0bc62b21
Security Audit / Python Dependency Audit (push) Canceled after 0s
Security Audit / Node.js Dependency Audit (push) Canceled after 0s
Security Audit / Frontend Build (tsc + vite) (push) Canceled after 0s
ci(frontend): Build-Job als Gate im Security-Workflow ergänzen
npm ci + npm run build (tsc -b + vite build) laufen jetzt bei jedem
Push/PR und blockieren bei TS-/Build-Fehlern statt unbemerkt zu brechen.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Ahyx6D3r7G1EuAc42nezn
2026-09-02 22:46:57 +02:00

80 lines
1.8 KiB
YAML

name: Security Audit
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 6 * * 1' # Jeden Montag 06:00 UTC
jobs:
pip-audit:
name: Python Dependency Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pip-audit
run: pip install pip-audit
- name: Run pip-audit
run: |
cd backend
pip-audit -r requirements.txt --format json --output pip-audit-report.json || true
pip-audit -r requirements.txt
continue-on-error: true # Nicht blockieren, aber anzeigen
- name: Upload audit report
if: always()
uses: actions/upload-artifact@v4
with:
name: pip-audit-report
path: backend/pip-audit-report.json
if-no-files-found: ignore
npm-audit:
name: Node.js Dependency Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run npm audit
run: |
cd frontend
npm audit --audit-level=high || true
continue-on-error: true
frontend-build:
name: Frontend Build (tsc + vite)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: |
cd frontend
npm ci
- name: Build (blockiert bei TS-/Build-Fehlern)
run: |
cd frontend
npm run build