Skip to content

Commit 03901f5

Browse files
Create security.yml
Signed-off-by: Corey Leath <corey22blue@hotmail.com>
1 parent 227652a commit 03901f5

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎.github/workflows/security.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Security Analysis
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
security-audit:
11+
name: Dependency & Secret Shield
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: ⬇️ Checkout Repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: 🛡️ Scan for Exposed System Secrets
21+
uses: trufflesecurity/trufflehog@main
22+
with:
23+
extra_args: --only-verified
24+
25+
- name: 🐍 Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.11'
29+
30+
- name: 📦 Evaluate Package Insecurities
31+
run: |
32+
pip install safety
33+
safety check || echo "⚠️ Security Alert: Review reported package vulnerabilities."

0 commit comments

Comments
 (0)