-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.01 KB
/
Copy pathsecurity.yml
File metadata and controls
45 lines (37 loc) · 1.01 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
name: Security Analysis
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: sentinelai-security-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
security-audit:
name: Dependency & Secret Shield
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Scan for exposed secrets
uses: trufflesecurity/trufflehog@v3.95.2
with:
extra_args: --only-verified
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: requirements.txt
- name: Install dependency audit tooling
run: |
python -m pip install --upgrade pip
python -m pip install pip-audit
- name: Audit runtime dependencies
run: pip-audit -r requirements.txt