-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.3 KB
/
Copy pathsecurity.yml
File metadata and controls
53 lines (43 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Security
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
osv-scan:
name: Dependency Scan
runs-on: blacksmith-2vcpu-ubuntu-2404-arm
timeout-minutes: 5
steps:
- uses: useblacksmith/checkout@v1
- name: Install osv-scanner
run: |
curl -fsSL https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_linux_arm64 -o osv-scanner
chmod +x osv-scanner
- name: Scan dependencies
run: ./osv-scanner scan source --lockfile=uv.lock --format=table
pip-audit:
name: Python Audit
runs-on: blacksmith-2vcpu-ubuntu-2404-arm
timeout-minutes: 5
steps:
- uses: useblacksmith/checkout@v1
- uses: astral-sh/setup-uv@v10.2.0
with:
version: "0.12.17"
- uses: actions/setup-python@v7
with:
python-version: "3.13"
- name: Install pip-audit
run: pip install pip-audit
- name: Audit dependencies
run: |
uv export --format requirements-txt --no-hashes > requirements.txt
pip-audit -r requirements.txt --disable-pip --no-deps