-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (35 loc) · 944 Bytes
/
Copy pathpython-dependency-guard.yaml
File metadata and controls
41 lines (35 loc) · 944 Bytes
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
name: Python Dependency Guard
on:
pull_request:
branches: [ master ]
paths:
- "pyproject.toml"
- "uv.lock"
- "security/python-direct-deps-allowlist.txt"
- "tools/check_python_dependency_policy.py"
permissions:
contents: read
jobs:
policy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Enforce dependency policy
run: python tools/check_python_dependency_policy.py --base-ref "origin/${{ github.base_ref }}"
dependency-review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Check dependency review
uses: actions/dependency-review-action@v4
with:
fail-on-severity: high