-
Notifications
You must be signed in to change notification settings - Fork 1.3k
38 lines (34 loc) · 898 Bytes
/
security.yml
File metadata and controls
38 lines (34 loc) · 898 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
name: Security Checks
on:
push:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.13
toxenv: safety
- python-version: 3.13
toxenv: bandit
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Setup python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade virtualenv
pip install tox
- name: Run security checks
env:
TOXENV: ${{ matrix.toxenv }}
run: tox