Repository navigation
Releases
v1.3.0: Supabase policies
Supabase policies that never check whose row it is. Row-level security protects a table only if each policy compares the row with the user. The usual next step after fixing permission denied for table is a policy such as for all using (true), which switches row-level security on and opens every row anyway. The new rule rls-policy-always-true flags a permissive policy whose condition is true, or only checks that the user is signed in (auth.uid() is not null, auth.role() = 'authenticated'):
- critical when the migrations grant
anona write and the policy lets anyone with the app's public key change or delete every row; - high when any signed-in user can, or when anyone can on a table whose grants come from Supabase's defaults before 30 October 2026;
- low for an insert-only policy open to
anon, which is fine for a contact form and worth a look anywhere else.
Read-only policies are not flagged, since public data needs them, and restrictive policies never are. The table's grants bound what a policy can open. Policies created inside DO blocks, and later drops, alters and renames, are replayed.
Every grade was reproduced in Supabase's Postgres 17 image: under for all using (true), anon read, changed and deleted every row; an update policy limited to signed-in users let any of them change every row and anon none; a select-only grant stopped the update with Postgres's own hint to GRANT UPDATE … TO anon. The fix, in docs/fixes.md, was checked the same way.
v1.2.0: Supabase migrations
Supabase migrations. agent-check now replays supabase/migrations/*.sql (and supabase/schemas/*.sql) in order and reports what the API can reach:
rls-off-table: a table in an exposed schema with row-level security off. Critical when the migrations letanonchange it, high otherwise. A table with no grant in the migrations still counts: until 30 October 2026 Supabase granted every new table toanonandauthenticated, so on those tables row-level security is the only guard.default-grant-to-anon:alter default privileges … grant … on tables to anon, which exposes every future table again and undoes Supabase's 30 October change.view-bypasses-rls: a view withoutsecurity_invoker, which runs with its owner's rights and skips the row-level security of the tables it reads.
Comments, string literals and function bodies are ignored. A later enable row level security, rename or revoke counts, and so does a DO loop that switches row-level security on for the tables it lists or for every table, or an event trigger that does it for new ones. Exposed schemas come from supabase/config.toml ([api] schemas) and default to public.
The fixes are in docs/fixes.md. Each snippet there was run against Supabase's Postgres 17 image, along with the behaviour each rule describes: anon reading and writing a table with row-level security off, and a view without security_invoker returning rows that row-level security hides.
Reports. Each finding now carries a severity marker (🔴 critical, 🟠 high, 🟡 medium, ⚪ low), and the report ends with a link to the fix guide and a line on where to ask for a fixed-price fix. The README leads with a screenshot of the job summary from a demo repository with planted mistakes.
agent-check 1.1.0
- Pull request code checked out in comment-triggered jobs (
issue_comment) is now graded likepull_request_target, including checkouts made withgh pr checkoutand head SHAs taken from step outputs. A trusted-commenter gate lowers the grade one level. - New
docs/fixes.md: the safe setting for every finding. - README: the repo check needs PyYAML for workflows (the Action installs it).
uses: azank1/agent-exposure@v1 now resolves to 1.1.0.
agent-check 1.0.0
First release of agent-check: a read-only check for risky AI-agent setup in a repository, as a GitHub Action or a local CLI.
What it flags
- Claude Code settings committed to the repo, which apply to everyone who clones it:
bypassPermissions,Bash(*)-style allow rules,enableAllProjectMcpServers, a committedsettings.local.json. - MCP configs (
.mcp.json,.cursor/mcp.json,.vscode/mcp.json,.gemini/settings.json,.codex/config.toml): unpinnednpx/uvxpackages, and credentials written into the file. - Agent workflows (
anthropics/claude-code-action,openai/codex-action,google-github-actions/run-gemini-cli) and agent CLIs started fromrun:steps: who can trigger the agent, sandbox and approval settings, issue or PR text pasted into the prompt, write permissions on events that carry outside text. pull_request_targetjobs that check out pull request code, and${{ github.event.* }}text insiderun:.
Severity follows what the job can actually do: pull request code that is checked out but never executed, or a job limited to trusted authors, grades lower.
Usage
- uses: azank1/agent-exposure@v1
with:
fail-on: high # low | medium | high | critical | noneLocally: python3 repo_check.py ~/my-repo. Read-only, no telemetry, never prints a secret value.