Skip to content

Commit 37257cf

Browse files
authored
Merge pull request #2 from cld2labs/dev
Add DocuBot AI
2 parents a4be38b + d7507e2 commit 37257cf

81 files changed

Lines changed: 21343 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Docker Compose Configuration
2+
3+
# Local URL Endpoint (only needed for non-public domains)
4+
# If using a local domain like api.example.com mapped to localhost, set to the domain without https://
5+
# Otherwise, set to: not-needed
6+
LOCAL_URL_ENDPOINT=not-needed
7+
8+
BACKEND_PORT=8000
9+
FRONTEND_PORT=3000

.github/workflows/code-scans.yaml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: SDLE Scans
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
PR_number:
7+
description: 'Pull request number'
8+
required: true
9+
push:
10+
branches: [ main ]
11+
pull_request:
12+
types: [opened, synchronize, reopened, ready_for_review]
13+
14+
concurrency:
15+
group: sdle-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
20+
# -----------------------------
21+
# 1) Trivy Scan
22+
# -----------------------------
23+
trivy_scan:
24+
name: Trivy Vulnerability Scan
25+
runs-on: ubuntu-latest
26+
env:
27+
TRIVY_REPORT_FORMAT: table
28+
TRIVY_SCAN_TYPE: fs
29+
TRIVY_SCAN_PATH: .
30+
TRIVY_EXIT_CODE: '1'
31+
TRIVY_VULN_TYPE: os,library
32+
TRIVY_SEVERITY: CRITICAL,HIGH
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- name: Create report directory
37+
run: mkdir -p trivy-reports
38+
39+
- name: Run Trivy FS Scan
40+
uses: aquasecurity/trivy-action@0.24.0
41+
with:
42+
scan-type: 'fs'
43+
scan-ref: '.'
44+
scanners: 'vuln,misconfig,secret,license'
45+
ignore-unfixed: true
46+
format: 'table'
47+
exit-code: '1'
48+
output: 'trivy-reports/trivy_scan_report.txt'
49+
vuln-type: 'os,library'
50+
severity: 'CRITICAL,HIGH'
51+
52+
- name: Upload Trivy Report
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: trivy-report
56+
path: trivy-reports/trivy_scan_report.txt
57+
58+
- name: Show Trivy Report in Logs
59+
if: failure()
60+
run: |
61+
echo "========= TRIVY FINDINGS ========="
62+
cat trivy-reports/trivy_scan_report.txt
63+
echo "================================="
64+
65+
# -----------------------------
66+
# 2) Bandit Scan
67+
# -----------------------------
68+
bandit_scan:
69+
name: Bandit security scan
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: Checkout
73+
uses: actions/checkout@v4
74+
with:
75+
submodules: 'recursive'
76+
fetch-depth: 0
77+
78+
- uses: actions/setup-python@v5
79+
with:
80+
python-version: "3.x"
81+
82+
- name: Install Bandit
83+
run: pip install bandit
84+
85+
- name: Create Bandit configuration
86+
shell: bash
87+
run: |
88+
cat > .bandit << 'EOF'
89+
[bandit]
90+
exclude_dirs = tests,test,venv,.venv,node_modules
91+
skips = B101
92+
EOF
93+
94+
- name: Run Bandit scan
95+
run: |
96+
bandit -r . -ll -iii -f screen
97+
bandit -r . -ll -iii -f html -o bandit-report.html
98+
99+
- name: Upload Bandit Report
100+
uses: actions/upload-artifact@v4
101+
with:
102+
name: bandit-report
103+
path: bandit-report.html
104+
retention-days: 30

.gitignore

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
2+
.env
3+
.env.local
4+
.env.*.local
5+
*.env
6+
7+
8+
9+
# ============================================
10+
# PYTHON
11+
# ============================================
12+
# Byte-compiled / optimized / DLL files
13+
__pycache__/
14+
*.py[cod]
15+
*$py.class
16+
*.so
17+
18+
# Virtual environments
19+
venv/
20+
env/
21+
ENV/
22+
.venv/
23+
24+
# PyCharm
25+
.idea/
26+
27+
# VS Code
28+
.vscode/
29+
30+
# Pytest
31+
.pytest_cache/
32+
.coverage
33+
htmlcov/
34+
35+
# mypy
36+
.mypy_cache/
37+
.dmypy.json
38+
dmypy.json
39+
40+
# ============================================
41+
# NODE.JS / REACT
42+
# ============================================
43+
# Dependencies
44+
node_modules/
45+
npm-debug.log*
46+
yarn-debug.log*
47+
yarn-error.log*
48+
49+
# Production build
50+
build/
51+
dist/
52+
53+
# React
54+
.env.development.local
55+
.env.test.local
56+
.env.production.local
57+
58+
# ============================================
59+
# TEMPORARY & CACHE FILES
60+
# ============================================
61+
# Temporary cloned repositories
62+
api/tmp/
63+
api/temp/
64+
*/tmp/
65+
*/temp/
66+
tests/
67+
68+
# Logs
69+
*.log
70+
logs/
71+
72+
# OS files
73+
.DS_Store
74+
Thumbs.db
75+
desktop.ini
76+
77+
# ============================================
78+
# LANGGRAPH & AI
79+
# ============================================
80+
# LangGraph checkpoints (SQLite databases)
81+
*.db
82+
*.sqlite
83+
*.sqlite3
84+
checkpoints/
85+
86+
tmp/

0 commit comments

Comments
 (0)