Skip to content

The job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.

security: narrow Bash(bun run:*) to the six shipped portal CLIs (#396)

Prasanth Kotaru2d636c50bf29
diff --git a/.claude/settings.json b/.claude/settings.json
index 347018cb..42e51d1b 100644
--- a/.claude/settings.json
+++ b/.claude/settings.json
@@ -2,7 +2,12 @@
"permissions": {
"allow": [
"Skill(job-application-assistant)",
- "Bash(bun run:*)",
+ "Bash(bun run .agents/skills/jobbank-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/jobdanmark-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/jobindex-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/jobnet-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/linkedin-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/freehire-search/cli/src/cli.ts:*)",
"Bash(python salary_lookup.py:*)",
"Bash(python3 salary_lookup.py:*)",
"Bash(python tools/verify_pdf.py:*)",
diff --git a/tools/security_guards.py b/tools/security_guards.py
index 0285367e..20988ad2 100644
--- a/tools/security_guards.py
+++ b/tools/security_guards.py
@@ -38,7 +38,17 @@ errors: list[str] = []
# an entry must add it here too - that is the point: the diff shows both.
ALLOWED_PERMISSIONS = {
"Skill(job-application-assistant)",
- "Bash(bun run:*)",
+ # Narrowed from the upstream template's blanket Bash(bun run:*), which
+ # pre-approved `bun run <any file>`. One entry per shipped portal CLI,
+ # matching what each SKILL.md already declares in its allowed-tools.
+ # A portal added by /add-portal needs its own entry here and in
+ # .claude/settings.json - that review step is the point.
+ "Bash(bun run .agents/skills/jobbank-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/jobdanmark-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/jobindex-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/jobnet-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/linkedin-search/cli/src/cli.ts:*)",
+ "Bash(bun run .agents/skills/freehire-search/cli/src/cli.ts:*)",
"Bash(python salary_lookup.py:*)",
"Bash(python3 salary_lookup.py:*)",
"Bash(python tools/verify_pdf.py:*)",