flowcheck
v0.1.2Least-privilege auditor for GitHub Actions workflows: permissions, triggers, secrets.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_workflows
Audit GitHub workflow files under a repo path for least-privilege problems: missing or write-all permissions, per-job grants broader than the job's steps need, pull_request_target or workflow_run or issue_comment triggers combined with a checkout of the PR head, secrets in fork-reachable contexts, secrets: inherit to reusable workflows, self-hosted runners on PR triggers, cache poisoning surface, whole-workspace artifact uploads, missing timeouts, and missing concurrency guards on deploy-shaped jobs. Returns a HARDENED, REVIEW, or EXPOSED verdict with file, job, and line evidence per finding,…
| Parameter | Type | Description |
|---|---|---|
path * | string | Repo root, a .github/workflows directory, or a single workflow file |
harden_plan
Build the least-privilege hardening plan for workflows under a repo path without writing any files. For each job, infers the permissions its steps actually need (checkout is contents: read, release creation is contents: write, GHCR push is packages: write, PR comments are pull-requests: write, and so on) and returns a paste-ready permissions block per job plus a top-level union block, with notes where a grant is removed or a privileged trigger shape needs a human decision.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repo root, a .github/workflows directory, or a single workflow file |