-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 882 Bytes
/
python-security.yml
File metadata and controls
47 lines (37 loc) · 882 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
42
43
44
45
46
47
name: Python Security
on:
pull_request:
push:
branches: [main]
schedule:
- cron: "23 4 * * 1" # Mondays at 04:23 UTC
concurrency:
group: python-security-${{ github.ref }}
cancel-in-progress: true
jobs:
bandit:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Bandit
run: pip install bandit
- name: Run Bandit
run: bandit -r gnat/ -ll -x tests/
pip-audit:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run pip-audit
uses: pypa/[email protected]
with:
inputs: "."