• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

oklahomer / go-risa / 23402412516
71%

Build:
DEFAULT BRANCH: main
Ran 22 Mar 2026 11:49AM UTC
Jobs 1
Files 3
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Mar 2026 11:48AM UTC coverage: 70.667% (-4.6%) from 75.243%
23402412516

push

github

oklahomer
feat: Add file-write guard hook to restrict writes to cwd and protect control files

Add a PreToolUse hook (pre-tool-use-file-write.sh) that restricts Edit,
Write, and NotebookEdit tools to only write within the working directory.
The hook derives the allowed directory from the "cwd" field in Claude
Code's hook input JSON, eliminating the need for a RISA_TMPDIR environment
variable. Writes to .claude/ are blocked to prevent self-modification
attacks that could disable security guards.

Also replace fmt.Sprintf-based settings.local.json generation with typed
structs to prevent JSON escaping bugs.

17 of 24 new or added lines in 1 file covered. (70.83%)

14 existing lines in 1 file now uncovered.

159 of 225 relevant lines covered (70.67%)

2.97 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
64.77
-5.29% claude.go

Uncovered Existing Lines

Lines Coverage ∆ File
14
64.77
-5.29% claude.go
Jobs
ID Job ID Ran Files Coverage
1 23402412516.1 22 Mar 2026 11:49AM UTC 3
70.67
GitHub Action Run
Source Files on build 23402412516
  • Tree
  • List 3
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23402412516
  • 9a4ae923 on github
  • Prev Build on main (#22928717094)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc