Skip to content

Commit 051b85f

Browse files
author
agent
committed
security: add GitHub Actions build check + SECURITY.md policy
- Add CI workflow to prevent future build errors on PRs/pushes - Document security headers and vulnerability reporting - Ved Parkash Arya <vedprakasharya9973@gmail.com>
1 parent 5caed43 commit 051b85f

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build Check
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '20'
17+
cache: 'npm'
18+
- run: npm ci
19+
- run: npm run build
20+
- run: npm run lint

β€ŽSECURITY.mdβ€Ž

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
| ------- | ------------------ |
7+
| main | :white_check_mark: |
8+
9+
## Reporting a Vulnerability
10+
11+
Please report security vulnerabilities to **hello@snapforest.in**.
12+
13+
We take all security issues seriously and will respond within 48 hours.
14+
15+
## Security Measures Implemented
16+
17+
- **Content Security Policy (CSP)** β€” Strict resource loading policies via `vercel.json`
18+
- **Strict-Transport-Security (HSTS)** β€” Enforced HTTPS with 2-year max-age
19+
- **X-Frame-Options: DENY** β€” Clickjacking protection
20+
- **X-Content-Type-Options: nosniff** β€” MIME sniffing protection
21+
- **Referrer-Policy** β€” Cross-origin referrer control
22+
- **Permissions-Policy** β€” Restricted browser API access
23+
- **COOP / COEP** β€” Cross-origin isolation policies
24+
- **Security Headers** β€” Comprehensive OWASP-aligned header configuration
25+
26+
---
27+
28+
**Snapforest by Ved Parkash Arya** β€” Security is not an afterthought.

0 commit comments

Comments
Β (0)