mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-13 01:43:10 +08:00
22 lines
475 B
Markdown
22 lines
475 B
Markdown
|
|
# TypeScript/JavaScript Security
|
||
|
|
|
||
|
|
> This file extends [common/security.md](../common/security.md) with TypeScript/JavaScript specific content.
|
||
|
|
|
||
|
|
## Secret Management
|
||
|
|
|
||
|
|
```typescript
|
||
|
|
// NEVER: Hardcoded secrets
|
||
|
|
const apiKey = "sk-proj-xxxxx"
|
||
|
|
|
||
|
|
// ALWAYS: Environment variables
|
||
|
|
const apiKey = process.env.OPENAI_API_KEY
|
||
|
|
|
||
|
|
if (!apiKey) {
|
||
|
|
throw new Error('OPENAI_API_KEY not configured')
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
## Agent Support
|
||
|
|
|
||
|
|
- Use **security-reviewer** skill for comprehensive security audits
|