-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguarddiff-demo.cast
More file actions
15 lines (15 loc) · 1.04 KB
/
guarddiff-demo.cast
File metadata and controls
15 lines (15 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{"version":2,"width":92,"height":24,"timestamp":1760000000,"env":{"SHELL":"/bin/zsh","TERM":"xterm-256color"}}
[0.10,"o","$ npm install -g guarddiff\n"]
[0.90,"o","+ guarddiff@0.1.0\n"]
[1.30,"o","$ git diff --staged -- src/openai.ts src/server.ts\n"]
[2.10,"o","$ guarddiff staged --fail-on high\n"]
[2.40,"o","GuardDiff v0.1.0 scanning staged diff...\n\n"]
[2.80,"o","✖ GuardDiff found 2 risky changes\n\n"]
[3.10,"o","critical secret/openai-key src/openai.ts:4\n"]
[3.30,"o"," OpenAI API key detected. Move it to OPENAI_API_KEY and rotate the exposed key.\n\n"]
[3.70,"o","high diff/cors-wildcard src/server.ts:18\n"]
[3.90,"o"," CORS wildcard added. Restrict origins to trusted domains.\n\n"]
[4.30,"o","Policy: fail-on high -> failed\n"]
[4.70,"o","$ guarddiff diff --file examples/leaked-api-key/openai.diff --format sarif > guarddiff-results.sarif\n"]
[5.20,"o","$ guarddiff init --github-action --pre-commit\n"]
[5.70,"o","Created guarddiff.config.yaml\nCreated .github/workflows/guarddiff.yml\nInstalled .git/hooks/pre-commit\n"]