Skip to content

Commit b930483

Browse files
committed
sec: implement comprehensive security suite (Dependabot, CodeQL, and .gitignore hardening)
1 parent 313372c commit b930483

File tree

3 files changed

+91
-2
lines changed

3 files changed

+91
-2
lines changed

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/frontend"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 5
8+
9+
- package-ecosystem: "pip"
10+
directory: "/backend"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 5
14+
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
interval: "monthly"

.github/workflows/codeql.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "InterviewAI Security Scan (CodeQL)"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '30 18 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: "ubuntu-latest"
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ 'javascript', 'python' ]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v3
31+
with:
32+
languages: ${{ matrix.language }}
33+
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@v3
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v3
39+
with:
40+
category: "/language:${{matrix.language}}"

.gitignore

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
1-
node_modules/
1+
# --- INTERVIEWAI MASTER GITIGNORE ---
2+
3+
# Python
24
backend/venv/
5+
__pycache__/
6+
*.py[cod]
7+
*$py.class
8+
*.so
9+
.pytest_cache/
10+
.coverage
11+
htmlcov/
12+
.mypy_cache/
313
.env
4-
*.log
14+
backend/.env
15+
backend/data/*.json.bak
16+
17+
# Node / React
18+
node_modules/
19+
frontend/node_modules/
20+
dist/
21+
frontend/dist/
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
.eslintcache
26+
27+
# OS / IDE
28+
.vscode/
29+
.idea/
530
.DS_Store
31+
Thumbs.db
32+
*.log
33+
*.sqlite3
34+
35+
# Docker
36+
.dockerignore

0 commit comments

Comments
 (0)