27042026/.gitea/workflows/sca.yml
akarkode 8c6b1a9a3f
Some checks failed
SCA - pip-audit / pip-audit (push) Failing after 2m41s
initial: dummy fastapi for SCA testing
2026-04-27 16:49:57 +07:00

36 lines
809 B
YAML

name: SCA - pip-audit
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
pip-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install tools
run: pip install pipenv pip-audit
- name: Install dependencies
run: pipenv install --deploy
- name: Run pip-audit scan
run: pipenv run pip-audit --format json -o pip-audit-report.json || true
- name: Fail on HIGH/CRITICAL
run: pipenv run pip-audit --fail-on-severity high
- name: Upload report
uses: actions/upload-artifact@v4
if: always()
with:
name: pip-audit-report
path: pip-audit-report.json