GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Least-privilege auditor for GitHub Actions workflows: permissions, triggers, secrets.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"flowcheck": {
"command": "npx",
"args": [
"-y",
"@reneturcios/flowcheck",
"mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add flowcheck -- npx -y @reneturcios/flowcheck mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"flowcheck": {
"command": "npx",
"args": [
"-y",
"@reneturcios/flowcheck",
"mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"flowcheck": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@reneturcios/flowcheck",
"mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub CloudCorpRecords ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.2) เข้า registry 11 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js, Docker ในเครื่องด้วย
ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
The default GitHub token can write to your repo. Most workflows never check.
Every GitHub Actions workflow runs with a GITHUB_TOKEN. Repos created with legacy settings give that token write access to nearly everything, and a workflow with no permissions: block inherits whatever the repo default is. Add the trigger shapes that check out pull request code inside a privileged context, secrets passed wholesale to reusable workflows, and caches written by PR runs and read back by release runs, and the workflow file itself becomes the attack surface. The 2025 tj-actions compromise showed how fast a trusted action can turn; "pwn request" write-ups have shown the same for pull_request_target checkouts of PR heads for years.
flowcheck audits every workflow in a repo for least-privilege problems, shows the evidence per file, job, and line, and emits a hardened permissions block per job, inferred from what the job's steps actually do, that you can paste in.
GitHub Actions are the second largest confirmed open source supply-chain attack surface of the last year, behind only npm. The failures are rarely exotic: a missing permissions block, one write-all, a checkout of ${{ github.event.pull_request.head.sha }} under pull_request_target, a self-hosted runner answering PR triggers. All of them are visible in the YAML, statically, before anything runs. flowcheck reads the YAML with a real parser (anchors, merge keys, and block scalars included), never executes anything in the scanned repo, and is callable by agents through MCP so the audit can run inside contribution and release workflows, not just by hand.
Sibling tools ask different questions: actionpin asks whether action refs are pinned to SHAs. flowcheck asks whether permissions and triggers are least-privilege. They share no code.
| rule | severity | what it means |
|---|---|---|
FC-PERMS-WRITE-ALL | critical (top level), high (job) | permissions: write-all, every scope writable by the token. |
FC-PR-HEAD-CHECKOUT | critical | pull_request_target, workflow_run, or issue_comment trigger combined with a checkout whose ref points at the PR head. Privileged context, untrusted code. |
FC-NO-TOP-PERMISSIONS | high or medium | No top-level permissions: block. Jobs inherit the repo default token, which is write-all on many repos. |
FC-JOB-GRANT-BROAD | medium (high for id-token) | A job (or the top-level block it inherits) grants a write scope no step in the job needs, judged against the inferred needs. |
FC-SECRETS-INHERIT | high or medium | A reusable workflow call passes secrets: inherit, handing every repo secret to the called workflow. |
FC-REUSABLE-MISSING | high | A job calls a local reusable workflow (./.github/workflows/...) that does not exist in the estate. GitHub fails the caller at runtime. |
FC-REUSABLE-NOT-CALLABLE | high | A job calls a local workflow as reusable, but that file declares no workflow_call trigger, so it cannot be called. |
FC-REUSABLE-INPUTS | medium | A caller passes an input the callee does not declare in workflow_call inputs, or omits a required input that has no default. |
FC-REUSABLE-SECRETS | medium | A caller does not pass a secret the callee declares required: true in workflow_call secrets (and does not use secrets: inherit). |
Reusable graph checks resolve local calls only: a remote reusable call (owner/repo/.github/workflows/... at a ref) cannot be read from the local estate and is not flagged by the graph rules. | FC-SELF-HOSTED-PR | high | A self-hosted runner in a workflow with PR-reachable triggers. Fork code on your machine and your network. | | FC-SECRETS-ON-PR | medium | Secret references in a pull_request workflow. Same-repo PR branches run with secrets before merge. | | FC-CACHE-POISON | medium | A cache step under a PR trigger in a workflow that also has a privileged (write) consumer: a poisoned cache entry can execute inside a later privileged run. | | FC-ARTIFACT-WORKSPACE | medium | actions/upload-artifact uploading the whole workspace (path: ., **, or no path), which routinely carries .git, config, and spilled secret material. | | FC-PERMS-READ-ALL | low | permissions: read-all instead of an explicit scope list. | | FC-NO-TIMEOUT | low | A job with no timeout-minutes. The platform default is 360 minutes. | | FC-NO-CONCURRENCY | low | A deploy-shaped job (release, publish, image push, or an environment) with no concurrency guard at job or workflow level. | | FC-DISPATCH-INPUT-INJECTION | low | A workflow_dispatch input interpolated directly into a run step, where free text becomes shell. | | FC-PARSE-ERROR | medium | The workflow YAML does not parse cleanly. |
Verdict rules:
For every job, flowcheck infers the least privilege its steps need:
| step shape | inferred grant |
|---|---|
actions/checkout | contents: read |
release creation (gh release create, softprops/action-gh-release) | contents: write |
image push (docker/build-push-action with push, docker push, buildx --push) | packages: write |
PR writes (gh pr create, gh pr comment, labeler, stale) | pull-requests: write |
issue writes (gh issue comment and friends) | issues: write |
Pages deploy (actions/deploy-pages) | pages: write, id-token: write |
| OIDC sign-in (AWS, Azure, Google auth actions, explicit OIDC use in scripts) | id-token: write |
build provenance (actions/attest-build-provenance) | attestations: write, id-token: write |
| no token use at all | permissions: {} |
audit prints the plan next to the findings; harden prints the per-job blocks plus a top-level union block. Nothing is written to your files: the plan is output, you paste it.
# Audit the current repo
npx @reneturcios/flowcheck audit
npx @reneturcios/flowcheck audit ~/src/my-repo --json
npx @reneturcios/flowcheck harden ~/src/my-repo
Example output:
flowcheck audit .: EXPOSED
workflows: 2, jobs: 3, findings: 2 (critical: 1, high: 1, medium: 0, low: 0) [CRITICAL] .github/workflows/pr.yml:14 FC-PR-HEAD-CHECKOUT (job inspect) Privileged trigger context (pull_request_target) combined with a checkout of the PR head (...) [HIGH] .github/workflows/pr.yml:1 FC-NO-TOP-PERMISSIONS No top-level permissions block. ... EXPOSED: at least one critical or high finding. ...
Auditing needs no credentials and no network. Estate caps are explicit, never silent: at most 500 workflow files per run and 2 MiB per file, and the report's caps field plus a note say when a cap was hit and what was not scanned.
Add to your MCP client config:
{
"mcpServers": { "flowcheck": { "command": "npx", "args": ["-y", "@reneturcios/flowcheck", "mcp"] } } }
Tools: audit_workflows(path) returns the full audit report as JSON. harden_plan(path) returns the per-job hardened permissions blocks, the top-level union block, and the findings they answer.
gh CLI and script patterns. An unknown third-party action may need more (or less) than the plan suggests; the plan is a starting point a human reviews, not a proof.actions/github-script step, which is arbitrary JavaScript that often delegates to repo files), the finding is reported at low severity with that caveat instead of medium or high. flowcheck does not follow local composite action files or scripts a step delegates to in v0.1.1.pull_request.head, head_ref, workflow_run.head). A checkout with no ref under pull_request_target checks out the base branch, which is the safe shape, and is not flagged. Indirect head checkouts assembled through env vars or outputs are not traced.self-hosted label in runs-on; runner groups named without the label are not recognized.pull_request; it does not try to prove a specific secret reaches a specific step.