Skip to content

ci(audit): allow the read-only commands the first run was denied - #1776

Merged
Gerrrt merged 1 commit into
mainfrom
ci/weekly-audit-allowlist
Nov 27, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
ci/weekly-audit-allowlist

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 27, 2026

Copy link
Copy Markdown
Owner

What changed

Widens the weekly audit's Bash allow list with read-only commands, and tells Claude how to call Bash so that it stays inside the list.

Added to the allow list:

  • ls, head, tail, wc, sort and uniq.
  • git status *.
  • git -C .lemmiwinks log|show|ls-files.
  • python3 scripts/check_docs.py *.

Added to the deny list: git -C * push|commit.

The prompt gains a Tools section: one command per Bash call, with no cd, &&, ; or redirects. Files are read with Read, Glob and Grep. Git in Lemmiwinks runs as git -C .lemmiwinks ….

Why

The first run (actions run 45906142767, which opened the audit ledger PR) reported 3 permission denials. Its PR body says Claude's own check_docs.py run was blocked. Under --permission-mode dontAsk, each part of a compound command has to match a rule, so cd .lemmiwinks && git log or check_docs.py 2>&1 | tail is denied. The action hides which commands they were, and show_full_output would publish them in a public log, so this covers the likely shapes rather than the exact three.

Blast radius

CI only. Every added rule is read-only. Nothing gives Claude write access outside docs/** and README.md, and the PR job's path guard is unchanged.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • actionlint, yamllint --strict and zizmor --offline .github/workflows: clean.

  • The settings block parses as JSON.

  • python scripts/check_docs.py: docs OK.

  • check_close_keywords.py --text on the prompt: PASS.

  • After merge, gh workflow run weekly-audit.yml -f focus=5 should report permission_denials_count: 0 in the Audit log.

  • make validate passes (not run: CI only)

  • Deployed to the lab and confirmed working (n/a)

  • Docs updated (the prompt in .claude/commands/weekly-audit.md)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit 4175637 into main Nov 27, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the ci/weekly-audit-allowlist branch November 27, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant