Skip to content

Commit 80fbbb6

Browse files
mohit-tanwar-devmohit-tanwar-dev
andauthored
security: add weekly pip-audit scan and scheduled security job to CI (#13)
Co-authored-by: mohit-tanwar-dev <mohitsingtanwar000@gmail.com>
1 parent 14f8050 commit 80fbbb6

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
schedule:
9+
- cron: '0 0 * * 1' # Weekly security scan on Mondays
810

911
permissions:
1012
contents: read
@@ -85,3 +87,24 @@ jobs:
8587
8688
- name: Run mypy
8789
run: mypy app tests || true # non-blocking until types are fully clean
90+
91+
security:
92+
name: Security scan (pip-audit)
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/checkout@v4
96+
- name: Set up Python
97+
uses: actions/setup-python@v5
98+
with:
99+
python-version: "3.12"
100+
cache: pip
101+
cache-dependency-path: |
102+
requirements.txt
103+
requirements-dev.txt
104+
- name: Install dependencies
105+
run: |
106+
python -m pip install --upgrade pip
107+
pip install -r requirements.txt
108+
pip install pip-audit
109+
- name: Run pip-audit
110+
run: pip-audit -r requirements.txt

0 commit comments

Comments
 (0)